PHP Filter Emal
<php
$email_a = 'joe@example.com';
$email_b = 'bogus';
if (filter_var($email_a, FILTER_VALIDATE_EMAIL))
echo "OK";
if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) {
echo "OK";
} else {
echo "TRY AGAIN";
}
?>
Joyous Jaguar