Neptunus Maris Posted February 15, 2007 Share Posted February 15, 2007 I've already searched through other topics concerning this but i just don't get any of them. This is an example from a book (PHP Game Programming by: Matt Rutledge, chapt. 4 pg. 68-69). Here he uses ^.+@.+\..+$ (pg.68) ...but then when he uses it in an example its just like this: if (ereg("^.+@.+\..+", $_POST)) { //bla bla } What happened to the dollor sign($) at the end? and is this right? Neptune. Link to comment https://forums.phpfreaks.com/topic/38672-email-validation/ Share on other sites More sharing options...
Neptunus Maris Posted February 15, 2007 Author Share Posted February 15, 2007 bump...sorry Link to comment https://forums.phpfreaks.com/topic/38672-email-validation/#findComment-185730 Share on other sites More sharing options...
corillo181 Posted February 15, 2007 Share Posted February 15, 2007 he did something wrong because the if statement is not even right. Link to comment https://forums.phpfreaks.com/topic/38672-email-validation/#findComment-185731 Share on other sites More sharing options...
Neptunus Maris Posted February 15, 2007 Author Share Posted February 15, 2007 he did something wrong because the if statement is not even right. no he did it right i was just typing too fast...i fixed it Link to comment https://forums.phpfreaks.com/topic/38672-email-validation/#findComment-185733 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.