johnnyblaze9 Posted May 6, 2008 Share Posted May 6, 2008 How can I set up a change password page? Link to comment https://forums.phpfreaks.com/topic/104376-change-password/ Share on other sites More sharing options...
Rohan Shenoy Posted May 6, 2008 Share Posted May 6, 2008 1. Ask the member to fill his old and new password on a form. 2. Check if the old password matches the one in database. 3. If it matches, use an UPDATE query, else retun some error message like :"old password does not match" Link to comment https://forums.phpfreaks.com/topic/104376-change-password/#findComment-534364 Share on other sites More sharing options...
beansandsausages Posted May 6, 2008 Share Posted May 6, 2008 sumit like : make a form, check both fields are filled in check both fields match, then edit the password, <form action="" method=post > <input type="text" name="pass" id="pass"> <input type="text" name="pass1" id="pass1"> $pass = $_POST['pass'] $pass1 = $_POST['pass1'] if($pass != $pass1 ) { echo " do not match "; } else { echo " Do match " // update db here } thats just a idea on how you would do it, Link to comment https://forums.phpfreaks.com/topic/104376-change-password/#findComment-534365 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.