Quote:
if( !preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9\._-+])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/", $email))
{
return false;
}
|
The above give error on compilation fails..
what wrong with it?
How can i prevent user from entering user@
hotmail.com.com
or something else which is not a proper mail hostname?