Re: Poll of sorts: Javascript Form validation or PHP

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

 



> I put a small one together using regular expressions,> http://www.ashleysheridan.co.uk/coding_php_validation.php
So we are "regexing" emails again?
#OUT OF coding_php_validation.php COPYcase 'email':{	$expression = "/^([a-z0-9_\-\.]+)@([a-z0-9_\-\.]+)\.([a-z]{2,5})$/i";	$errorText = "The email does not appear to be a valid type.";	break;}#END COPY

What should be valid email addresses according to RFC 2822 [1]:!#$%&*+-/=?^_`{|}~@example.com"@"@example.com
Not valid email addresses:"\"@example.com@@example.com- -@xxxxxxxxxxx
Valid email addresses according to the Multipurpose Internet MailExtension (MIME) [2]:ä@example.comÃ(c)@℞.com

[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