Jump to content


Photo

Code to validate an Email


  • Please log in to reply
2 replies to this topic

#1 nestorvaldez

nestorvaldez
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 05 October 2006 - 07:23 PM

I need to locate a button next to the email field to validate if this email exists, how can I make it, How can I know if the email typed is real?
If somebody can help to get this, pliz..

#2 Psycho

Psycho
  • Moderators
  • Move along, nothing to see here
  • 11,891 posts
  • LocationCanada

Posted 05 October 2006 - 08:15 PM

If you want to validate that the email is properly formatted you can use some javascript (many available through a google search). However there is no way to verify that it is a legitimate email. You will *sometimes* receive a bounceback for bad emails, but that can take anywhere from minutes to days and you would have to figure out a way for the bounceback to be available to your web server.
The quality of the responses received is directly proportional to the quality of the question asked.

I do not always test the code I provide, so there may be some syntax errors. In 99% of all cases I found the solution to your problem here: http://www.php.net

#3 roopurt18

roopurt18
  • Staff Alumni
  • Advanced Member
  • 3,749 posts
  • LocationCalifornia, southern

Posted 05 October 2006 - 08:18 PM

http://www.phpfreaks...ic,96280.0.html
PHP Forms : Part I | Part II

JavaScript: Singleton

http://www.rbredlau.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users