PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

PHP Questions Forums : PHP Questions and Answers

Jump to Last Post

Forms

By: Sriram [5-July-10 3:36AM]
1 posts
picture

How to check that Email ID we are enterning in the register form is a valid one or not?


Valid means not according to regular expressions ?

For example if an entering a email like dsfgdsfgdhfg@sfgsadf.com (This email id should not be a valid one ) Where as, the email id like ram.hategals@gmail.com should be a valid one?


Thanks

Sreeram.V

Re : Forms


Petetimms [11-July-10 12:11PM]
11 posts
picture

There are two methods that you can use in order to achieve your aim and see that an email address is valid.

The first method is to send an email to that address and ask the person to click a link to validate their email. Clearly if they click the link to validate the email address works.

The other method is to see if the domain name is a valid mail server, rather than the email address itself being valid, using a function called checkdnsrr.

Search php.net for more details on that.

Previous: Multiple Checkbox
Next: What Is Better Sessions Or Cookies



Custom Search