email validation string.
| From: | Don | Date: | Thu, 18 Jan 2007 20:40:36 +0000 |
| Subject: | email validation string. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-247363@lists.php.net to get a copy of this message | ||
I'm trying to get this line to validate an email address from a form and it
isn't working.
if (ereg("^.+@.+\..+$",$submittedEmail))
The book I'm referencing has this line
if (ereg("^.+@.+\\..+$",$submittedEmail))
Anyway.. I welcome any advice as long as it doesn't morph into a political
debate on ADA standards and poverty in Africa. :-)
Thanks
Don