Re: [PHP-DB] registration form with activation code sent to user
Documented research indicate that on Thu, 16 Jun 2005 16:20:31 +0100 (BST), babu wrote: Ya joseph u r right, i am thinking of the url to be generated to be send to the user. I followed u r steps but did not understand some points. 2.) Store that string to the database somewhere where to store in database, i mean when the user clicks the activation code how to check the users identity.? I actually made this exact functionality for one of my projects a few weeks ago. I made a seperate table simply called 'confirm', that contains the userID for the user in question, the confirmationcode to match, and the expiration time for this confirmationcode, plus an auto-incremented index column. In the users table I then simply have a boolean field called 'confirmed', that's set to 0 (false) by default. When a user's email address have been confirmed, this field is changed to 1 (true). The only reason I have expiration time in this table is for cleanup purposes. 3.) Email the mail to the address specified with the url to the confirm page one must send the email manually or is there any automatic generator for email sending to users.? Read up on the mail() function. It's actually pretty simple. All you have to do is send an email, with some proper explanatory text, with a link to your confirm.php script (or what you choose to call it), either with a direct link with a get statement including the confirmation code, or with a link to the confirmation script, and then the confirmation code and instructions on how to enter it. Or at best: offer both options. Then simply have your user registration/signup code send the email whenever a user registers. this will confirm that they did in fact check thier email. how exactly, can explain little bit.? Make the code generate a unique confirmation code (this is pretty simple), and then just have your confirmation script compare the confirmation code with the one in the database. If there's a match then the user to whom you sent that particular code is confirmed. All of the code needed to do this is actually fairly simple to write. Rene -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] registration form with activation code sent to user
Hi , I have seen many forums, where the user can register and a message will be displayed that the user will get an activation code through email, by which he can complete his registration. How this can be done using php.I am eager to know. Thanks. - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos
RE: [PHP-DB] registration form with activation code sent to user
Since you couldn't google for it...here is the link http://www.zend.com/zend/tut/tutorial-mehmet1.php Bastien From: babu [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] registration form with activation code sent to user Date: Thu, 16 Jun 2005 14:18:02 +0100 (BST) Hi , I have seen many forums, where the user can register and a message will be displayed that the user will get an activation code through email, by which he can complete his registration. How this can be done using php.I am eager to know. Thanks. - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] registration form with activation code sent to user
i dont think a capcha is what they are looking for, rather a way to create a md5 or something that they can email a link to users to a page such as confirm.php?validate=MD5-HERE so that they can validate thier email. Steps to do this 1.) Create the string maybe an MD5 based on the email they choose or something like that 2.) Store that string to the database somewhere 3.) Email the mail to the address specified with the url to the confirm page 3.) The user will check thier email and click the link to your confirm page, this will confirm that they did in fact check thier email. 4.) Mark the user as confirmed. -- Joseph Crawford Jr. Codebowl Solutions [EMAIL PROTECTED]
Re: [PHP-DB] registration form with activation code sent to user
Ya joseph u r right, i am thinking of the url to be generated to be send to the user. I followed u r steps but did not understand some points. 2.) Store that string to the database somewhere where to store in database, i mean when the user clicks the activation code how to check the users identity.? 3.) Email the mail to the address specified with the url to the confirm page one must send the email manually or is there any automatic generator for email sending to users.? this will confirm that they did in fact check thier email. how exactly, can explain little bit.? thanks -- Joseph Crawford Jr. Codebowl Solutions [EMAIL PROTECTED] - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos
Re: [PHP-DB] registration form with activation code sent to user
#2 Well when the user registers there will have to be a database table for members i assume, why not make a column confirmation or something and store this string there? #3 Check into the mail() function, this will allow you to send custom headers etc.. You just create the body of the message something like this $body = 'Thank you for registering with usbr'; $body .= 'You must now confirm your email address by clicking herehttp://yourdomain.com/[EMAIL PROTECTED]code=sdjfhasf80g7ad9fgfg the actual url for the clicking here link you need to create maybe something like a href= yourdomain.com/[EMAIL PROTECTED]code=sdjfhasf80g7ad9fgfghttp://yourdomain.com/[EMAIL PROTECTED]code=sdjfhasf80g7ad9fgfgclicking here/a then you use the mail() function to send the mail to the users email address... on the confirm.php page you should grabe the code and email using $_GET['code'] and $_GET['email'] then check the database for the users email and make sure the code matches the one in the database. If it does mark them as confirmed and let them proceed, if not well do nothing. -- Joseph Crawford Jr. Codebowl Solutions [EMAIL PROTECTED]