Forgot password script. Posting of login details by emailIf we are storing password in the table then we can send them to user provided email address but this is not a good practice and usually password is encrypted before storing in table. Here we can't send the password to user email address, we have to send one random token or activation key to user email to reset password. Here it is ..
Sending activation key to reset passwordYou can download the full script with login , signup and forgot password scripts at the end of this tutorial. All steps are explained with PHP comments between the steps. Use the PHP forum to post your bugs,errors etc.
$email=$_POST['email'];
As you have seen here we can send the lost password to the email address of the member. But if the password is encrypted and stored then we can't retrieve the lost password, so we will generate one activation key and ask the member to use that to reset the forgot password.
|
This is a basic script only for easy understanding Read the tutorial on online membership management script with encrypted password system |
Sipence | 26-07-2012 |
yah!! this article is really helpful for me. |
macky | 10-08-2012 |
Hi ahm is this script running 100%? coz ahm i will be using this script |
Nathan | 15-08-2012 |
I used the script above (I am not encrypting at this time). However, when I place my email address in my forgot password form, I receive the message "Your email address is not correct". I checked the database and my email address is there. Help! |
smo | 16-08-2012 |
The checking of email address is done by ensuring presence of @ and . in you email address. So it should work. Just try to print once above the checking conditions. |
luisa | 28-08-2012 |
is this really working... i need this tutorial for our website thank you. |
jaharlal | 03-04-2013 |
Yes!! Really a fantastic script without any fees. Tank You |
Martin Britton | 29-04-2013 |
My database has multiple tables in it. How do I get the script to access the right table? It keeps returning saying email address is not correct even though it is. |
mannyloz | 30-09-2013 |
I have tried and tried to make this script work in our website however, it keeps displaying "There is some system problem in sending login details to your address. Please contact site-admin." Please HELP! |
smo | 04-10-2013 |
Contact your host asking about sending mail. Or Just check if mail function is working in your site or not. |
Ramya | 27-11-2013 |
Every thing works fine except forgot password. Is there any alternative way to give site_url ??? |
rahiman | 23-08-2014 |
its good |
FalconCoder | 11-09-2014 |
if my passwords in database hash(encrypted) what i should i do? |
senthil | 28-10-2014 |
hi gud concept |
Owen | 09-12-2014 |
Then what is the answer |
Sherry | 07-09-2015 |
its 100% working Friends...!!! |