Return to Snippet

Revision: 10564
at January 4, 2009 15:09 by jfherring


Initial Code
<?php

$emailAddress = "my_email_test@mail server.com";

if(!filter_var($emailAddress, FILTER_VALIDATE_EMAIL))
{
    echo "Submitted address is faulty";
}
else
{
    echo "Address submitted successfully";
}

?>

Initial URL

                                

Initial Description
I think this is php 5 only

Initial Title
Valid email address filter

Initial Tags
email, php

Initial Language
PHP