www.webdeveloper.com
Results 1 to 2 of 2

Thread: register validation send to e-mail

  1. #1
    Join Date
    Jul 2007
    Posts
    34

    register validation send to e-mail

    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 blabla.com/confirm.php?mail=alalala@hotmail.com, right?
    And on the confirm page it will have some code that update the field with the e-mail alalala@hotmail.com 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

  2. #2
    Join Date
    Feb 2008
    Posts
    12
    generate a activation code, wich is stored in the database when somebody registeres... Then in the email put a link in it with the activation code : blabla.php?code=activationCode
    Then when the link is visited the account will be activated.
    But you can only know the code if you search it in the email... That way you can make sure the entered email is theirs...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles