Friday, October 2, 2009

Validate Email -PHP

function fnValidateEmail($varEmail)
{
if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $varEmail))
return(true);
else
return(false);
}


Disclaimer: Any code or advice given is for instructional purposes only. We will not be responsible for any loss or damage caused by using this script

1 comment:

sarah taylor said...

Yes it is an important code and really useful. Security Solutions