Alidad Posted April 23, 2008 Share Posted April 23, 2008 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 More sharing options...
947740 Posted April 23, 2008 Share Posted April 23, 2008 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 More sharing options...
Fadion Posted April 23, 2008 Share Posted April 23, 2008 Have a look at this. Link to comment https://forums.phpfreaks.com/topic/102601-email-confirmation/#findComment-525574 Share on other sites More sharing options...
947740 Posted April 23, 2008 Share Posted April 23, 2008 Glad to know I had the basic idea... Nice tutorial by the way. Link to comment https://forums.phpfreaks.com/topic/102601-email-confirmation/#findComment-525579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.