12-20-2007, 01:54 AM
|
#2 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
|
You don't need the $email ==. All you need is the eregi() function, as if that pattern matches the string in the second argument, then it will return true, giving you a successful match, therefore a valid email.
Also I would suggest using something like the following, rather than what are you using:
PHP Code:
if (!eregi("/pattern/", $email) { // Tell user they had an invalid email }
|
|
|