Here is the code to validate email address
<?php
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$email)){
echo "Invalid email";
}else{
echo "Valid Email";}
?>
php email validation example
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment