email validation string.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux