Email Validation
Posted: Wed Oct 16, 2002 12:54 am
How would i validate if the input email address really is an email address?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$email = ' ';
if ( preg_match( '/^їA-z0-9_-]+ї@]їA-z0-9_-]+(ї.]їA-z0-9_-]+)+їA-z]{2,4}$/', $email ) ) {
echo 'Valid email in type...';
} else {
echo 'Not valid in type...';
}
?>