angel777 Posted March 30, 2008 Share Posted March 30, 2008 hi.. if i do it in php code.. the meail validation is so short <?php $email = "[email protected]"; if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { echo "Valid email address."; } else { echo "Invalid email address."; } ?> but i find it hard to get the javascript validation as simple as those above.. Link to comment https://forums.phpfreaks.com/topic/98595-email/ Share on other sites More sharing options...
Acs Posted March 30, 2008 Share Posted March 30, 2008 Javascript also supports regex. Check this -> http://www.javascriptkit.com/javatutors/redev3.shtml Link to comment https://forums.phpfreaks.com/topic/98595-email/#findComment-504621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.