\n" ."Content-type: text/html; charset=iso-8859-1\n"; $body = "Name: ".$name."
\n" ."Email: ".$email."
\n" ."Comments:
\n" .$comments; if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email)) { echo "That is not a valid email address. Please return to the" ." previous page and try again."; exit; } mail($toemail, $subject, $body, $headers); echo "Thanks for submitting your comments"; ?>