Trending
Heat Index
0) $strPost=$strPost . "&ReferrerID=" . $strPartnerID; $strPost=$strPost . "&Amount=" . number_format($sngTotal,2); // Formatted to 2 decimal places with leading digit $strPost=$strPost . "&Currency=" . $strCurrency; // Up to 100 chars of free format description $strPost=$strPost . "&Description=" . $description .' '. $strVendorName; /* The SuccessURL is the page to which Form returns the customer if the transaction is successful ** You can change this for each transaction, perhaps passing a session ID or state flag if you wish $strPost=$strPost . "&SuccessURL=" . $strYourSiteFQDN . $strVirtualDir . "/orderSuccessful.php";*/ $strPost=$strPost . "&SuccessURL=http://www.m2m-magazine.com/directory-payment-sucessful/"; /* The FailureURL is the page to which Form returns the customer if the transaction is unsuccessful ** You can change this for each transaction, perhaps passing a session ID or state flag if you wish */ $strPost=$strPost . "&FailureURL=http://www.m2m-magazine.com/your-order-has-not-been-successful/"; // This is an Optional setting. Here we are just using the Billing names given. $strPost=$strPost . "&CustomerName=" . $CustomerName; /* Email settings: ** Flag 'SendEMail' is an Optional setting. ** 0 = Do not send either customer or vendor e-mails, ** 1 = Send customer and vendor e-mails if address(es) are provided(DEFAULT). ** 2 = Send Vendor Email but not Customer Email. If you do not supply this field, 1 is assumed and e-mails are sent if addresses are provided. **/ if ($bSendEMail == 0) $strPost=$strPost . "&SendEMail=0"; else { if ($bSendEMail == 1) { $strPost=$strPost . "&SendEMail=1"; } else { $strPost=$strPost . "&SendEMail=2"; } if (strlen($strCustomerEMail) > 0) $strPost=$strPost . "&CustomerEMail=" . $strCustomerEMail; // This is an Optional setting if (($strVendorEMail <> "[your e-mail address]") && ($strVendorEMail <> "")) $strPost=$strPost . "&VendorEMail=" . $strVendorEMail; // This is an Optional setting // You can specify any custom message to send to your customers in their confirmation e-mail here // The field can contain HTML if you wish, and be different for each order. This field is optional $strPost=$strPost . "&eMailMessage=Thank you so very much for your order."; } // Billing Details: $strPost=$strPost . "&BillingFirstnames=" . $strBillingFirstnames; $strPost=$strPost . "&BillingSurname=" . $strBillingSurname; $strPost=$strPost . "&BillingAddress1=" . $strBillingAddress1; if (strlen($strBillingAddress2) > 0) $strPost=$strPost . "&BillingAddress2=" . $strBillingAddress2; $strPost=$strPost . "&BillingCity=" . $strBillingCity; $strPost=$strPost . "&BillingPostCode=" . $strBillingPostCode; $strPost=$strPost . "&BillingCountry=" . $strBillingCountry; if (strlen($strBillingState) > 0) $strPost=$strPost . "&BillingState=" . $strBillingState; if (strlen($strBillingPhone) > 0) $strPost=$strPost . "&BillingPhone=" . $strBillingPhone; // Delivery Details: $strPost=$strPost . "&DeliveryFirstnames=" . $strDeliveryFirstnames; $strPost=$strPost . "&DeliverySurname=" . $strDeliverySurname; $strPost=$strPost . "&DeliveryAddress1=" . $strDeliveryAddress1; if (strlen($strDeliveryAddress2) > 0) $strPost=$strPost . "&DeliveryAddress2=" . $strDeliveryAddress2; $strPost=$strPost . "&DeliveryCity=" . $strDeliveryCity; $strPost=$strPost . "&DeliveryPostCode=" . $strDeliveryPostCode; $strPost=$strPost . "&DeliveryCountry=" . $strDeliveryCountry; if (strlen($strDeliveryState) > 0) $strPost=$strPost . "&DeliveryState=" . $strDeliveryState; if (strlen($strDeliveryPhone) > 0) $strPost=$strPost . "&DeliveryPhone=" . $strDeliveryPhone; $strPost=$strPost . "&Basket=" . $strBasket; // As created above // For charities registered for Gift Aid, set to 1 to display the Gift Aid check box on the payment pages $strPost=$strPost . "&AllowGiftAid=0"; /* Allow fine control over AVS/CV2 checks and rules by changing this value. 0 is Default ** It can be changed dynamically, per transaction, if you wish. See the Server Protocol document */ if ($strTransactionType!=="AUTHENTICATE") $strPost=$strPost . "&ApplyAVSCV2=0"; /* Allow fine control over 3D-Secure checks and rules by changing this value. 0 is Default ** It can be changed dynamically, per transaction, if you wish. See the Form Protocol document */ $strPost=$strPost . "&Apply3DSecure=0"; // Encrypt the plaintext string for inclusion in the hidden field $strCrypt = encryptAndEncode($strPost); $linker='/analyst-whitepaper-and-webinar/'; /* VendorTxCode=weknowmedia-121017150551-246886268 &Amount=0.00 &Currency=GBP &Description= &SuccessURL=http://m2mnowevents.com/registration-successful/ &FailureURL=http://m2mnowevents.com/registration-failed/ &CustomerName= &SendEMail=1 &CustomerEMail= &VendorEMail=m.szelezin@wkm-global.com &eMailMessage=Thank you very much for your order. &BillingFirstnames= &BillingSurname= &BillingAddress1= &BillingAddress2= &BillingCity= &BillingPostCode= &BillingCountry= &BillingState= &BillingPhone= &DeliveryFirstnames= &DeliverySurname= &DeliveryAddress1= &DeliveryCity= &DeliveryPostCode= &DeliveryCountry= &Basket=1:Delivery:1:0:---:0:0 &AllowGiftAid=0 &ApplyAVSCV2=0 &Apply3DSecure=0 */ if (isset($descrip) && !isset($strPageError)) { //database connection include 'conection.php'; $error=array(); if(!empty($_POST['delegates'])){ $klucze = array('vendorTxCode','Amount','Currency','Description','Entrysource','CustomerName','CustomerEMail','BillingFirstnames','BillingSurname','Company','Title','BillingAddress1','BillingAddress2','BillingCity','BillingPostCode','BillingCountry','BillingPhone');//klucze foreach($_POST as $key => $row){ if(isset($klucze[$key]) && empty($row)){ $error[$key] = 'Please fill in all required fields'; } } if(!count($error)){ //zapis do bazy $sql = "INSERT INTO registrations (vendorTxCode,Amount,Currency,Description,Entrysource,CustomerName,CustomerEMail,BillingFirstnames,BillingSurname,Company,Title,BillingAddress1,BillingAddress2,BillingCity,BillingPostCode,BillingCountry,BillingState,BillingPhone,1_Additional_Firstname,1_Additional_Lastname,1_Additional_email,2_Additional_Firstname,2_Additional_Lastname,2_Additional_email,3_Additional_Firstname,3_Additional_Lastname,3_Additional_email,4_Additional_Firstname,4_Additional_Lastname,4_Additional_email,5_Additional_Firstname,5_Additional_Lastname,5_Additional_email) VALUES ('$strVendorTxCode','$sngTotal','$strCurrency','$description','$entrysource','$CustomerName','".$_POST['CustomerEMail']."','".$_POST['BillingFirstnames']."','".$_POST['BillingSurname']."','".$_POST['Company']."','".$_POST['Title']."','".$_POST['BillingAddress1']."','".$_POST['BillingAddress2']."','".$_POST['BillingCity']."','".$_POST['BillingPostCode']."','".$_POST['BillingCountry']."','".$_POST['BillingState']."','".$_POST['BillingPhone']."','".$_POST['1_Additional_Firstname']."','".$_POST['1_Additional_Lastname']."','".$_POST['1_Additional_email']."','".$_POST['2_Additional_Firstname']."','".$_POST['2_Additional_Lastname']."','".$_POST['2_Additional_email']."','".$_POST['3_Additional_Firstname']."','".$_POST['3_Additional_Lastname']."','".$_POST['3_Additional_email']."','".$_POST['4_Additional_Firstname']."','".$_POST['4_Additional_Lastname']."','".$_POST['4_Additional_email']."','".$_POST['5_Additional_Firstname']."','".$_POST['5_Additional_Lastname']."','".$_POST['5_Additional_email']."')"; mysql_query($sql); if(!mysql_error()){ //set unset ($_POST); }else{ //nie udalo sie zapisac echo "Database Error - Please try again"; } }else{ echo "Database Error - Please try again"; var_dump($error); } } mysql_close($connection); header("Location: $linker"); } ?>
Analyst webinar and whitepaper

Oracle and Beecham whitepaperThe tremendous growth of the Internet of Things (IoT) opens up all types of service driven opportunities, delivering increased efficiencies, better customer value and improved quality of life. This webcast and whitepaper help outline the key strategies for unlocking real business value from IoT.

Learn About:

Delivering new services to achieve
a competitive edge

Enabling connected solutions on any device, of any size, in any market

Harnessing business value from the device to the data center

Fill in the form below for webcast and white paper

How many delegates?
First Name *
Last Name *
Company Name*
Job Title *
E-mail *
Address 1 *
Address 2
City *
Post Code *
Country *
State (U.S. only) (* for U.S. customers only)
Phone *

By using this form, you accept M2M Now website
terms and conditions.