$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(); } ?>
Silverstone

DRIVE 10 HIGH-PERFORMANCE CARS IN ONE DAY ON BRITAIN'S ONLY F1 TRACK

Register for your chance to win the Grand Prize
A Full Days Driving Experience at F1 Silverstone Track!
Get your FREE "I have time for the Silverstone Challenge"
T-Shirt just for registering!

Free T-Shirt

The ultimate driving challenge is about the skill to harness astonishing speed. With the Silverstone Challenge they've devised the ultimate recipe:

Take 10 of their favourite power and performance cars and add them to one of the few Grand Prix circuits in the world to give non- professionals the run of the whole track. Make sure the cars are in top nick, and mix in a dash of expert instructors with intimate knowledge of the track and the cars, who have all been, or are, racers themselves. Add a sprinkling of the best hospitality at a world-class venue.

Visit the F1 Silverstone Challenge website for more information.




*Required field

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