Hi thanks alot for replying i really appreciate your help,
I tried what you gave but it didnt seam to work, It may have something to do with the way the actual for is set up with the name for instance is inside the form instead of out of it if you know what i mean?
here is the code for html and php
HTML Code:
<form id="form1" name="form1" method="post" action="http://www.#####.co.uk/contact.php">
<p>For a free, no obligation quote, simply fill in the the short form below:</p>
<p><input name="fullname" type="text" class="default-value" value="Full Name:" /></p>
<p><input name="businessname" type="text" class="default-value" value="Business Name:" /></p>
<p><input name="address" type="text" class="default-value" value="Address:" /></p>
<p><input name="postcode" type="text" class="default-value" value="Postcode:" /></p>
<p><input name="emailaddress" type="text" class="default-value" value="Email Address:" /></p>
<input name="phonenumber" type="text" class="default-value" value="Phone Number:" /></p>
<p><textarea name="quotedetails" id="textarea" cols="45" rows="5" class="default-value">Additional Details:</textarea></p>
<p><input name="verif_box" type="text" id="verif_box" class="default-value" value="Please Describe The Image:" /></p>
<p><img src="verificationimage.php?%3C?php%20echo%20rand(0,9999);?%3E" alt="PLEASE DESCRIBE THE IMAGE" /></p>
<p>
<input type="submit" name="Click for Quote" value="Click for Quote" />
<input type="reset" name="reset" value="Reset" />
</p>
</form>
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);
}
?>
Hopefully you can help me out as i dont really know what i`m doing, thanks again
Bookmarks