HTML Code:
<?php
$fullname = $_POST["fullname"];
$businessname = $_POST["businessname"];
$address = $_POST["address"];
$postcode = $_POST["postcode"];
$emailaddress = $_POST["emailaddress"];
$phonenumber = $_POST["phonenumber"];
$quotedetails = $_POST["quotedetails"];
$verif_box = $_POST["verif_box"];
$to = "info@#####.co.uk";
$subject = "enquiry";
$headers = "From: $emailaddress\n";
header("location:http://www.#####.co.uk/thankyou.html");
$message = "A visitor to your site has filled out the following information.\n
Full Name: $fullname
Business Name: $businessname
Company Address: $address
Post Code: $postcode
Email Address: $emailaddress
Phone Number: $phonenumber
Quote Details: $quotedetails ";
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
mail($to,$subject,$message,$headers);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>Thank you</p>
</body>
</html>
I`ve narrowed it down as the thankyou page i am using was is a full web page with all my details on ect..
Thanks again
Bookmarks