Validate Email Address





7
Date Submitted Mon. Oct. 10th, 2005 10:47 AM
Revision 1 of 1
Coder mattrmiller
Tags "Email Address" | PHP | Validate
Comments 4 comments
Validate Email Address
<?php
        function IsValidEmail($strEmail)
        {
                // Validate the syntax
                if (eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $strEmail))
                {
                        return true;
                }
       
                return false;
        }
?>

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

Comments Don't use eregi (POSIX)
Thu. Jul. 27th, 2006 7:42 AM    Helper rastersize
Comments RFC822 address matcher
Tue. Aug. 8th, 2006 8:11 PM    Beginner schmalls
Comments Whoa
Wed. Mar. 15th, 2006 12:23 AM    Helper Scriptsentials
Comments People always forget...
Thu. Feb. 16th, 2006 7:09 PM    Helper mercutio

Voting