Email activation with procedure php

Hey guys!

I have been going through some tutorials on php by mmtuts on youtube and I have managed to do a mini register, login and activation page. Mine consists of three pages and I am wondering if this is possible because I can manage to send an activation code such as:

http://localhost/phplessons/activate.phpemail=example@example.com&activatetoken=G431RGD5fF

but I am not sure if my logic is correct here… Would I need to check to see if the token matches something? such as token 2 or would I just take the user straight to the page where they will just be activated? If the latter, then I can manage to do that but I just thought that there should be some basic checking…

The user token needs to be compared to the Token that you should have stored in the database. Otherwise there is no other point in having the token. If the token matches then set the activation field to true.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.