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 ... Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.