Email Validation In PHP
Email address Validation in PHP
<form> Email Address: <input type='text' name='email'> <input type='submit' value='Submit'> </form>
<?php
$email=$_REQUEST['email'];
$expression = "^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,4})$";
if (eregi($expression, $email)) {
echo 'Valid Email';
} else {
echo 'Invalid Email';
}
?>
Comments
Post a Comment
If you Satisfied , Please Leave a comment