943,929 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1131
  • PHP RSS
May 3rd, 2007
0

Email Validation

Expand Post »
Sorted, thanks
Last edited by tomf; May 3rd, 2007 at 1:10 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tomf is offline Offline
9 posts
since Apr 2007
May 3rd, 2007
0

Re: Email Validation

FYI, when you solve your own problem posting the solution is better then deleting the question. That way others can learn from it and we don't have a hole in our forums.
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
May 8th, 2007
0

Re: Email Validation

I know tomf solved his problem, but here is an example anyway:

<?php
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_POST['email'])) {
echo 'Your email address is not valid.';
}
?>

I know it is monotonous, but it work great!
Reputation Points: 22
Solved Threads: 0
Newbie Poster
29FIVE Designs is offline Offline
6 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: XML and str_replace !
Next Thread in PHP Forum Timeline: Need Help with my Subsription Form using PHP





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC