"; pt_register('POST','email'); pt_register('POST','comments'); $comments=preg_replace("/(\015\012)|(\015)|(\012)/"," 
", $comments);if($email=="" || $comments=="" ){ $errors=1; $error.="
  • You did not enter one or more of the required fields. Please go back and try again."; } if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email)){ $error.="
  • Invalid email address entered"; $errors=1; } if($errors==1) echo $error; else{ $where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/")); $message="email: ".$email." comments: ".$comments." "; $message = stripslashes($message); mail("cameron@desk003.com","Form Submitted at your website",$message,"From: ".$email.""); header("Refresh: 0;url=commentsthanks.html"); ?>