Validate email address in PHP
No Comments Yet so far
Leave a comment
October 4, 2008, 5:38 pm
Filed under: Useful PHP Functions | Tags: email validation, email validation in php, php email validate, php email validation, validate email
Filed under: Useful PHP Functions | Tags: email validation, email validation in php, php email validate, php email validation, validate email
Validate your email address by regular expression in PHP. Tiny but useful function and easy to extend.
function EmailAddressValidator($Email)
{
if(eregi(“^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$”, $Email))
return true;
else
return false;
}
Leave a Comment
No Comments Yet so far
Leave a comment
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>