Validate Email Address in PHP



PHP validate email script is an easy way to validate an email address. Use this quick and simple PHP regular expression for email validation.

$email='your email';

if(!preg_match("/^[\.A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $email)) echo "Not valid Email.";

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.

 

© 2006 - 2009 BNCScripts.com . All right reserved.