soycharliente Posted May 7, 2007 Share Posted May 7, 2007 if (!preg_match('|^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\z|i', $e)) { // current address is not valid $valid = false; $error = "$e is not a valid email address"; } Does this test to see if the field is blank as well? Quote Link to comment Share on other sites More sharing options...
benjaminbeazy Posted May 7, 2007 Share Posted May 7, 2007 it will Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.