Signup : User confirmation of EmailMember Posting of verification Email
The user can login to its mail box and open the welcome mail with the link. The welcome mail will have the link with all the required data as uqery string. On clicking the link , the browser will open the verification page at server and submit the following data.
The status is expected to have two options .
B : The confirmation mail is posted and the user has not yet responded
C : User has confirmed the mail by visiting the link and submitted all matching data
We will check the status value and by using switch function run the code blocks.
If status is B , then both tables mem_signup and mem_status are updated with status = C , for this following steps are taken .
All data ( userid, email, mem_id, word ) are matched with stored data against status_id. If the data is matching then the status field of mem_signup and mem_status table are updated to C .
If status is C , then message is given to user saying the email address is already confirmed so they can login.
This article is written by plus2net.com team.