Page 1 of 1
HELP ME
Posted: Wed Jul 08, 2009 5:26 am
by yasmin958
Dear friends,
php code for validate a email in a text box?
Re: HELP ME
Posted: Wed Jul 08, 2009 5:31 am
by SvanteH
First of all may I suggest a more descriptive title and more respect to the people that reply instead of just "give, give, give"
You can use preg_match and use the pattern ^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+([a-z]{2,3}$) to check whether the email is valid or not. There's several email patterns varying in the internet because of the complexity of an email. This is just one I got.
Svante