cute.bandar
Cyborg Agent
This should work, but I just can't figure out what wrong here. HOping that there is something simple I am missing
In this email_valid always returns false , no matter what the parameter is.
What is wrong here. Every email address supplied is treated as invalid.
Help!
Code:
function email_valid ($email)
{
if (preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email))
return true;
else return false;
}
if ( email_valid($email) == FALSE ) ;
{
$errors[] = "notemail" ;
}
What is wrong here. Every email address supplied is treated as invalid.
Help!