Code: Select all
if ((strlen($email)>=5)&&(strlen($email)<50)){ //min length 5 and max length 50
if ((!eregi("^їwww]{3}",$email))||(!eregi("\@setroPETS\.com$",$email))){
//the above denies emails starts with 'www' or denies emails with endings 'setroPETS.com'
//to prevent useless emails from being entered
if (!eregi("(їA-Za-z0-9]){4,15}$", $email)){ //prevent emails with 'aaaaaa' or '888888'
if (eregi("^їa-zA-Z0-9\.\_]+@їa-zA-Z0-9]+\.їa-zA-Z0-9\.]{2,4}$", $email)){Currently it does allow something like http://www.bob@bob.com and bob@setropets.com
any ideas as to what i got wrong?