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