";
if(strlen($subject) == 0) $errorstring .="You must specify a subject.
";
if(strlen($message) == 0) $errorstring .="You have not entered a message.
";
if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Please enter a valid email address.
";
else
{
$emailtail = strstr($youremail, '@');
if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Please enter a valid email address.
";
}
if(strlen($errorstring) == 0){
$subject = "Contact from the ".$site_url." site - ".$subject;
$sent = mail($site_admin, $subject, $message, "FROM: ".$youremail);
if($sent) $showform = FALSE;
}
}
include("header.php");
?>
If you have any questions or comments about the site or services we offer, feel free to contact us using the form below: Thanks for your comments, ".$site_url." "; ?> |