matfish Posted June 24, 2007 Share Posted June 24, 2007 How come: if(!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $email)){ echo 'Incorrect'; } doesnt work? Tried with things like "name", "[email protected]" and it comes back as valid? Thanks Link to comment https://forums.phpfreaks.com/topic/56952-email-validation/ Share on other sites More sharing options...
matfish Posted June 24, 2007 Author Share Posted June 24, 2007 sorry - being a dumbass - its sorted now Link to comment https://forums.phpfreaks.com/topic/56952-email-validation/#findComment-281319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.