|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Jan 2002
Location: Barcelona
Posts: 85
|
e-mail validation in php?
I'm trying to validate my registration form but this script for the e-mail validity is returning an error. Can anyone tell me why? Or suggest another piece of code to check an e-mail address. In the meanwhile I've commented it out but I'd like to know a better solution.
Thanks. /* // check an email address is possibly valid else (!(preg_match("/^.{2,}?@.{2,}\./", $_POST['email']))) { include 'emailInvalid.htm'; } */ |
|
|
|
|
|
#2 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
This is the one that I usually use:
PHP Code:
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|