Hi all Ive based my registration check on a google search but unfortunately I cant find the link to it now and im now having trouble with people registering with valid email addresses.
The type of email address Im having a problem with is
[email][email protected]
However when I remove the “.” between my firstname and surname this registers correctly.
My expression is
[code=php]if (!eregi(‘^[a-zA-Z]+[a-zA-Z0-9_-]*@([a-zA-Z0-9_-]+){1}(.[a-zA-Z0-9_-]+){1,2}’, stripslashes(trim($_POST[’emailaddress’])) )) {
$errors[] = ‘<font color=”#980000″>A valid email address.</font>’;
}
Could anyone let me know where to put the additional string in and also if there are any email scenarios which may result in other users not being able to register with a valid email address.
Regards
Mike