Standard procedure for confirming email for a web app
Posted
by
Woho87
on Stack Overflow
See other posts from Stack Overflow
or by Woho87
Published on 2011-02-19T06:48:14Z
Indexed on
2011/02/19
7:25 UTC
Read the original article
Hit count: 194
Hi!
I have created a web app that is almost finished. I need it to confirm new emails. I just want to know if the these are the right procedures for that, because I'm not familiar with this.
I create a new table called "confirmEmails" with only one column with uniqueId. A unique Id is created with PHP: uniqueid()
which is created directly after a user hit the submit button. And the php script stores it on the table. An email is sent together with a link www.domain.com/confirmEmail.php?uniqueId=kushfpuhrufhufhfhuhfheriufhehu. I have an another php script called confirmEmail.php that gets the value if uniqueId through the link with $_GET['uniqueId'];(maybe I shall use post instead her). And now it stores the new email in table called user
Is it right procedures? Pls give me some feedback!
© Stack Overflow or respective owner