Posted By

mzym on 09/22/09


Tagged

email php validation ereg


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gregorio


E-Mail Validation


 / Published in: PHP
 

  1. if (!$email || !ereg("^[-A-Za-z0-9_]+[-A-Za-z0-9_.]*[@]{1}[-A-Za-z0-9_]+[-A-Za-z0-9_.]*[.]{1}[A-Za-z]{2,5}$", $email)) {
  2.  
  3. }

Report this snippet  

You need to login to post a comment.