By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,640 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,640 IT Pros & Developers. It's quick & easy.

Confirming Someone's email

P: n/a
I have come up with the idea to confirm someone's email by generating
a random codeword which is sent to the email address they enter on a
registration form.
I then get them to click a link which takes them to a page where they
have to then enter their email along with the codeword.
This ensure that the email address is valid, However...

Is there an easier way of doing it? I know it is possible to simple
email them a link which when they click it completes the registration
process, but I have no idea how to implement such a thing.

Any help welcomed!
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
David wrote:
I have come up with the idea to confirm someone's email by generating
a random codeword which is sent to the email address they enter on a
registration form.
I then get them to click a link which takes them to a page where they
have to then enter their email along with the codeword.
This ensure that the email address is valid, However...

Is there an easier way of doing it? I know it is possible to simple
email them a link which when they click it completes the registration
process, but I have no idea how to implement such a thing.


Include the code in the URL you send them, something such as
http://your.server.com/mail/validate.php?code=IIHLVOWG

Then your validate.php script verifies that code against the database.
If the code is not specified in the URL provide a text box for it.

This code should only be valid for some time (24 hours, a week, ...)

.... and they are not required to type anything, not even their address.
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.
Jul 17 '05 #2

P: n/a
There is a superb tutorial on phpfreaks.com that explains all this, plus all
the signup, validation, lost password, stuff that you need when creating a
membership system on your site.

This utilises MySQL as the database. All the code is provided on the last
page.

http://www.phpfreaks.com/tutorials/40/0.php

Hope this helps - it sure helped me.

"Pedro" <he****@hotpop.com> wrote in message
news:bo*************@ID-203069.news.uni-berlin.de...
David wrote:
I have come up with the idea to confirm someone's email by generating
a random codeword which is sent to the email address they enter on a
registration form.
I then get them to click a link which takes them to a page where they
have to then enter their email along with the codeword.
This ensure that the email address is valid, However...

Is there an easier way of doing it? I know it is possible to simple
email them a link which when they click it completes the registration
process, but I have no idea how to implement such a thing.


Include the code in the URL you send them, something such as
http://your.server.com/mail/validate.php?code=IIHLVOWG

Then your validate.php script verifies that code against the database.
If the code is not specified in the URL provide a text box for it.

This code should only be valid for some time (24 hours, a week, ...)

.... and they are not required to type anything, not even their address.
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.