e-mail varification problems.
| From: | Kenneth R Zink II | Date: | Wed, 14 Mar 2001 21:44:26 +0000 |
| Subject: | e-mail varification problems. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43914@lists.php.net to get a copy of this message | ||
I got the following code in a script I'm testing, but it seams to not verify all good e-mail
address as valid.
echo "old email = ".$row[email]."<br>";
if (ereg("^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+" or
"^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+",$email)){
$email = "none";
} else {
$email = $row[email];
}
echo "new email = ".$email."<br>";
It verifies "mullen4@marshall.edu" but not spooner@umr.edu
it verifies "rhettbean@mindspring.com" but not joshjenkins@mindspring.com
for a look at the results, check out http://www2.ripcon.net/members/datacopy.php
I'm stumped. Can someone shed light on this?
Kenneth R Zink II Hellcat1@S-Series.Org ICQ# 5095094
'87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!! http://www.s-series.org/htm/firestorm/firestorm.htm
Racing by the Grace of God!!