Hello, i have a form so people can register to receive a newsletter. But i want to make it better and after people register i want an e-mail to be sent to the email used to registered and then the person confirm it clicking on a link. Basicly like all forums do.
I just don't know how to generate the page that the link will point to.
I assume that lets say people will enter name, email and age.
then after people click register that date will be add to my db and i'll send a mail asking to click the link x. so far i know how to do that.
but then that link x needs to have some data like email@example.com, right?
And on the confirm page it will have some code that update the field with the e-mail firstname.lastname@example.org and activate it.
I'm just lost on which code should be writen on the confirm.php page and how this should be done more saftly because this way some smart guy know that if he write "blabla.com/confirm.php?mail=the email he wants to register" on his browser it will activate without problem