Forget Password code in php

Hi

We are developing a website, and I need to add a button named "Forget password" and once user clicks on that, I need to ask the username  from the user. once he enters the user name then I must send a new password to his mail id. Only registered users can get their new password.
onanarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

selvolCommented:
php "forgot password" button
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_22859072.html?sfQueryTermInfo=1+button+forgot+password+php 
Might be better.
 
I knew thier were a few. So Ithought I'd point yo towards them
 
Selvol
0
shobinsunCommented:
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

onanarAuthor Commented:
Thanks a  lot guys. I got a clear picture now.
0
selvolCommented:
Thank you for asking. We appreciate it.
 
If you need anything else regarding this question. Please ask.
ANd I will post some code.
 
Selvol
0
onanarAuthor Commented:
Hi

Here is my deal. I am  going to add a new button in my login page called"forget password". once user click on this then it will go to "forgetpass.php", there i will ask user-id for the user,once user click the submit button then it goes to other php for the result.

The problem is, I am not able to go to any page from login with out submit.

http://localhost/starfish/login.php

I think they have set it as default page.

if i try

http://localhost/starfish/user.php

then also it is going to  http://localhost/starfish/login.php

i am using apache server for php and mysql database

please suggest me.
0
selvolCommented:
Apologies for once again posting links for you.  
I don't do that very much, But in the question you asked ,
YOu;
""$$Forget password" and once user clicks on that, I need to ask the username  from the user. once he enters the user name then I must $$#send a new password to his mail id. $1Only registered users can get their new password. "
This Software;
"$$Forgot Password PHP Script on asking the Username from user $$#sends the password to the users email account on checking if the username exists or not and if the email address exists or not for that username. $1 Also it is checked if the account is active or not."
http://webscripts.softpedia.com/scriptDownload/Forgot-Password-Download-42055.html
http://download2us.softpedia.com/dl/4640169d23bd533d1bd13e8ef7810a8d/4a557cac/600042055/webscripts/php/kbforgotpassword.rar
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.