bahattab
05-12-2009, 11:21 PM
How to Validate the format of an email address
Validate the format of an email address:
if (!preg_match("(^[-\w\.]+@([-a-z0-9]+\.)+[a-z]{2,4}$)i", $email)) echo "Email address $email is not valid";
http://tips-scripts.com/one_liners_php
Validate the format of an email address:
if (!preg_match("(^[-\w\.]+@([-a-z0-9]+\.)+[a-z]{2,4}$)i", $email)) echo "Email address $email is not valid";
http://tips-scripts.com/one_liners_php