\\\]\Z/"; return preg_match($expr,$email); } ?> Mac Master India : Feedback
         
   Feedback     
   
255){ $valid=false; $err.="
Either your name is empty or too long"; } $email=trim($_POST["email"]); if(strlen($email)==0 || strlen($email)>255 || !checkEmailSyntax($email)){ $valid=false; $err.="
Either your email is empty or too long or in wrong format"; } if(strlen($comments)==0 || strlen($message)>1024){ $valid=false; $err.="
Please enter some comments"; } if($valid){ $headers="From: $name <$email>\r\n"; $headers.="X-Mailer: PHP/".phpversion()."\r\n"; $headers.="Content-type: text/html\r\n"; if(mail($to,$subject,nl2br($comments),$headers)) $err.="
Your message was successfully sent.
"; else $err.="
Message sending failed.
"; } } $formed=isset($_POST["passed"]); ?>


">
Name :">
Email :">
Comments/Suggestions :