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
https://forums.phpfreaks.com/topic/102601-email-confirmation/
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
https://forums.phpfreaks.com/topic/102601-email-confirmation/#findComment-525569
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.