E-Mail validation


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



Copy this code and paste it in your HTML
  1. function check_mail($email){
  2. if(eregi("[A-Za-z0-9\.!#\\$%&'\*+-/=\?\^_`{\|}~]{3,}@[a-z0-9]+([-_\.]?[a-z0-9])*\.[a-z]{2,4}", $email)) return TRUE;
  3. else return FALSE;
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.