Hooch Posted January 3, 2007 Share Posted January 3, 2007 Hey all. I am finishing up my edit_profile.php page. I have everything working except the password part. It seems the browser is remembering the last password I enteredin a login. But I have the following code that is suppose to putthe MD5 protected password in it's spot. <input size="30" type="password" name="password" value="<? echo $profile[password]; ?>" class="txtbox"> I have a check in place that can tell if the password has been changed or not, soit knows whether or not to change it in the database. But if your password is changedthen say you go back to the edit_profile.php page 2 minutes later to change something else,the browser remembers the old password. It does not echo out the MD5 password from thedatabase. Then it changed the password back to the 1st one I logged in with. Confusing question..let me know if it needs more explanation.Thank you,HoochEDIT** FYI I have this at the top of every page on my site ob_start(); session_start(); Link to comment Share on other sites More sharing options...
justsomeguy Posted January 3, 2007 Share Posted January 3, 2007 It may be that the browser is just caching the page. If you update information other then the password, does anything change? Link to comment Share on other sites More sharing options...
Hooch Posted January 3, 2007 Author Share Posted January 3, 2007 Yes, anything else I change works. I'm thinking of not having the password changeon the edit profile page. Just have a link to achange password page. This would fix the whole problem. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 3, 2007 Share Posted January 3, 2007 Hmm. Well without seeing the code, it would seem that if you are updating the database then it would retain whatever information you put in it. So, the database might not be getting the new password. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now