Signup : User Email verification through Link
welcome.php page receives the newly signed users mem_id through query string. Hence it is first checked (integer or not ).
Using this mem_id we collect userid, email address and status from the mem_table. The status column of member table will have one of the three options.
A : Just signed and verification mail is not posted to the registered email address
B : Verification mail is posted to registered email and the same is pending for confirmation
C : Confirmation received and the email address is verified so member can login
We have collected the details by using SELECT query.
We create a randomly generated word ( as token ) and store the same along with mem_id, userid, email in a table mem_status. After storing we will collect the unique identification number from auto increment field of the table. This is know as status_id .
After successful signup by user , we have to verify the email address submitted by user by sending a link with one activation key. This link will contain following data which the user needs to post back to server by clicking the validation link.
Here is a formatted link containing the details of the user which is posted to its email address for verification.
Once the user clicks the link from its Inbox, the link along with the data is posted to the server for verification.
We will learn this in our next tutorial
Features with Tutorials Signup page with all validations Welcome page after signup asking user to check & verify email Verification of Email address Login Page after verifiction of email Home page for logged in users members Logout page to destroy session variables
This article is written by plus2net.com team.