Tuesday, June 14, 2011

Email validation in PHP

            function is_Email($em)
            {
                if (preg_match("/^(\w+((-\w+)|(\w.\w+))*)\@(\w+((\.|-)\w+)*\.\w+$)/",$em))
                   return true;
                else return false;
            }


No comments:

Post a Comment