HEAD; /* If the posted key doesn't match the key set at the top then it's either the first time the form has been used or someone is trying to post to this form improperly so they can't send an email yet */ if ($_POST['key']==$key) { $visitor=$_POST['visitor']; $visitormail=$_POST['visitormail']; $notes=$_POST['notes']; $ip=$_POST['ip']; $attn=$_POST['attn']; $httpagent=$_POST['httpagent']; $httpref=$_POST['httpref']; $refer=$httpref; if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) { $badinput="Enter valid e-mail"; $myemail = ""; } if(empty($visitor) || empty($visitormail) || empty($notes )) { $badinput="Please fill in all fields"; $myemail = ""; } $todayis = date("l, F j, Y, g:i a") ; $subject = $attn; $notes = stripcslashes($notes); $message = " $todayis \n Attention: $attn \n Message: $notes \n From: $visitor ($visitormail)\n Additional Info : IP = $ip \n Browser Info: $httpagent \n Referral : $httpref \n "; $from = "From: $visitormail\r\n"; if ($myemail != "") { mail($myemail, $subject, $message, $from); echo $header; ?>

Thank You

()
Your Message has been sent.


Subject:

Message:
", $notes); echo $notesout; ?>
Referred from:

$badinput"; } else { echo "

$greeting

"; } $ipi = getenv("REMOTE_ADDR"); $httprefi = getenv ("HTTP_REFERER"); $httpagenti = getenv ("HTTP_USER_AGENT"); ?>
Your Name:

Your Email:



Subject:


Mail Message:



Return to Site