/ Published in: PHP

check if email address is valid
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$emailOK = eregi("([_\.0-9a-z-][email protected])([0-9a-z][0-9a-z-]+\.)+([a-z]{2,3})",$_POST['email']);
Comments

$emailOK = eregi("([_\.0-9a-z-][email protected])([0-9a-z][0-9a-z-]+\.)+([a-z]{2,3})",$_POST['email']);