RobertP Posted September 20, 2011 Share Posted September 20, 2011 so i tried to search and got this lovely message.. Unable to access the search daemon i need a script to validate email's, ALL emails, not just the popular ones (eg: hotmail,gmail.etc). i have this.. if(!preg_match("/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i",$email)){ $style->set('page_error','Invalid email adress.'); } is this correct? i found on google.. PS: Someone should make a sticky and add a cheat-sheet table to it ... Link to comment https://forums.phpfreaks.com/topic/247551-email-validation/ Share on other sites More sharing options...
xyph Posted September 20, 2011 Share Posted September 20, 2011 Why when there's always google for that? http://www.linuxjournal.com/article/9585 Link to comment https://forums.phpfreaks.com/topic/247551-email-validation/#findComment-1271195 Share on other sites More sharing options...
joe92 Posted September 21, 2011 Share Posted September 21, 2011 PS: Someone should make a sticky and add a cheat-sheet table to it ... I agree, and they already have, but it's terribly old and hasn't been updated since 2006 Link to comment https://forums.phpfreaks.com/topic/247551-email-validation/#findComment-1271337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.