Jump to content

Email confirmation


Alidad

Recommended Posts

Hi, does anyone know where i can learn how to write code in php for someone registration and send confirmation by email to activity member by click link!

 

i would appreication if you have sample code where i can learn how to write that code in php and mysql please or if there is tutorial link for that...

 

AM

Link to comment
Share on other sites

I do not have exact code, but I have an idea of how to do it.

 

1. Someone registers.

2. You create an email in your script that sends a link inside the email, with the session id included in the url.  Also, insert the username, password, session id, and other user info into a database.

3. User clicks link.  It takes him to a page, E.G. index.php?id=3249782skldf234lasdf.  In the index.php page, you have a $_GET['id'].  You query the database for a session id exactly the same as your $_GET['id'].  If there is a match, finish registering the user.

 

Sorry that I do not have an example, but I think that may help you understand the basic idea.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.