$v) { if ($k == "captchaid" || $k == "captchareply") continue; $body .= htmlspecialchars($k) . ": " . htmlspecialchars($v) . "
"; } $mail->From = htmlspecialchars($_POST['email']); $mail->FromName = htmlspecialchars($_POST['firstname'] . ' ' . $_POST['lastname']); $mail->Subject = "Gastite UK Free T-Shirt Submission"; $mail->MsgHTML($body); // if ($_SERVER["HTTP_HOST"] == "gastite.co.uk") { $mail->AddAddress("info@gastite.co.uk", "T-Shirt Requests Admin"); //} else { //$mail->AddAddress("support@neptuneweb.com", "T-Shirt Requests Admin"); //} ?> Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { //echo "

Message sent!

"; } //conection: $link = mysqli_connect("mysql51-028.wc2.dfw1.stabletransit.com","486316_website","ei15qloSTJdk","486316_gastiteuk") or die("Error " . mysqli_error($link)); //clean data. $fields_to_save = array("firstname","surname","title","company","classification","address","address2","city","postalcode","used_before","phone","email","shirtsize", "whereheard","whereheard_other"); $values_to_save = array(); foreach ($fields_to_save as $f) { $values_to_save[$f] = "'" . mysqli_escape_string($link,$_POST[$f]) . "'"; } $query = "INSERT INTO tshirt_requests (" . implode(',',$fields_to_save) . ", `createdate`) VALUES (" . implode(',',$values_to_save) . ",now())" or die("Error in the query " . mysqli_error($link)); //execute the query. $result = $link->query($query); if (!$result) { die("error: " . mysqli_error($link)); } } if ($_POST) { if (($message = validate_server_side()) !== true) { print "

Error: $message

"; print "
"; // roughly close out page. exit(); } $ch = curl_init("http://www.neptuneweb.com/api/captcha/?function=checkcaptcha&captchaid=" . urlencode($_POST["captchaid"]) . "&captchareply=" . urlencode($_POST["captchareply"])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $captcharesponse = curl_exec($ch); curl_close($ch); if ($captcharesponse != "OK" && $IGNORECAPTCHA != true) { $captchaerror = $captcharesponse; print "



Error: Invalid Security Code. Please press the back button to try again.

"; print ""; // roughly close out page. exit(); } else { process_serverside(); print "



Thank you. Your submission has been received! We will follow up as soon as possible.

"; print "
"; // roughly close out page. exit(); } ?>

Get your FREE I am the quickest on the job T-Shirt today
and be entered into a draw for
FREE Gastite CSST kits!**

Free T-Shirt Xr2 CSST Tubing
Click to Enlarge

We Get Around

The wait is over. The premier brand of flexible gas piping is here. GASTITEĀ®.

With corrugated stainless steel tubing you can navigate around obstacles, saving time and money. And the patented XR2 fitting delivers an all-metal seal, no soldering, no leaks. The Jacket-LockĀ® feature of this fitting surrounds the polyethylene protecting the tubing from environmental contaminants. To learn more about gas installations for commercial and residential applications, contact Gastite today.

Complete and submit the following form to receive a FREE T-Shirt and be entered into a draw for FREE Gastite CSST kits!**




*Required field

**No purchase necessary. Draws are monthly. Valid thru 30 April 2014.
Please note that we are only able to post to the UK.