N0L1m1t5 Posted August 7, 2011 Share Posted August 7, 2011 If a user registers to a web im making, what would I have to do in order for an email be sent to him/her in order for him to activate it? Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/244138-php-user-email-activation-code/ Share on other sites More sharing options...
ZulfadlyAshBurn Posted August 7, 2011 Share Posted August 7, 2011 on the registration script, when the data is send to the mysql server, create a random number and add it to the database. and on the database, add a column for the activation code and a column for activated or not. once the user sign up, the registration code create a random number, store it into the database, send an email to the user of their activation code, the user use that code on a page where they verify the user activation code and set that they are activated. Quote Link to comment https://forums.phpfreaks.com/topic/244138-php-user-email-activation-code/#findComment-1253797 Share on other sites More sharing options...
voip03 Posted August 7, 2011 Share Posted August 7, 2011 this link will help you. http://youhack.me/2010/04/01/building-a-registration-system-with-email-verification-in-php/ Quote Link to comment https://forums.phpfreaks.com/topic/244138-php-user-email-activation-code/#findComment-1253814 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.