Question:
i need email address validation code ?
nabin l
2008-09-15 00:56:59 UTC
I am making a banking site and user must enter his/her emailaddress.I want the user to enter the valid email-address,i mean existing email address.for eg:user@hotmail.com.can i validate the email address whether it is existing or not.can any body help me please.i need some implementation code or some suitable site which can help me.Thanks in advance.
Three answers:
Mani S
2008-09-15 01:11:50 UTC
You cannot verify if the e-mail ID exists are not. Because, you must establish contact with the yahoo server or any other mail service provider to verify that information.

But you can verify if the input ID is valid; i.e., you can check whether it has the '@' symbol, the domain name(Eg:gmail.com,yahoo.com etc)

Here's the code to validate e-mail in JavaScript. I've included the entire code along with the form to validate e-mail.





Student Details





















Name


e-mail id




Address




Date of Birth











dd/mm/yyyy





Department