Email Validation

Reply

Join Date: Apr 2007
Posts: 9
Reputation: tomf is an unknown quantity at this point 
Solved Threads: 0
tomf tomf is offline Offline
Newbie Poster

Email Validation

 
0
  #1
May 3rd, 2007
Sorted, thanks
Last edited by tomf; May 3rd, 2007 at 1:10 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Email Validation

 
0
  #2
May 3rd, 2007
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.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 6
Reputation: 29FIVE Designs is an unknown quantity at this point 
Solved Threads: 0
29FIVE Designs 29FIVE Designs is offline Offline
Newbie Poster

Re: Email Validation

 
0
  #3
May 8th, 2007
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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC