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? Link to comment https://forums.phpfreaks.com/topic/50417-solved-does-this-test-for-blank/ Share on other sites More sharing options...
benjaminbeazy Posted May 7, 2007 Share Posted May 7, 2007 it will Link to comment https://forums.phpfreaks.com/topic/50417-solved-does-this-test-for-blank/#findComment-247686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.