Donovan:
Try this
function EmailCheck ( $sEmail )
{
$regexp=/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z
]{2,}$/i;
if ( !preg_match($regexp, $sEmail) )
return false;
return true;
}
Alejandro M.S.
-Mensagem original-
De: Donovan Brooke
in that!
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Alejandro Michelin Salomon amichel...@hotmail.com
Date: Fri, Jan 21, 2011 12:14
Subject: RES: [PHP] email address syntax checker
To: 'Donovan Brooke' li...@euca.us
Cc: php-general@lists.php.net
Donovan:
Try this
function
they will require being inside quotation marks), and
the @ symbol is included in that!
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Alejandro Michelin Salomon amichel...@hotmail.com
Date: Fri, Jan 21, 2011 12:14
Subject: RES: [PHP] email address syntax checker
3 matches
Mail list logo