View Single Post
Old 12-20-2007, 01:54 AM   #2 (permalink)
Andrew
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default

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

Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
The Following User Says Thank You to Andrew For This Useful Post:
Aaron (12-20-2007)