email validity check with regex


/ Published in: PHP
Save to your folder(s)

check if email address is valid


Copy this code and paste it in your HTML
  1. $emailOK = eregi("([_\.0-9a-z-]+@)([0-9a-z][0-9a-z-]+\.)+([a-z]{2,3})",$_POST['email']);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.