Hey all,
I have a website where users come, sign up, and manage a few small portfolios (not stocks). As of now, users can successfully view all their portfolios, but I am making a "My Account" page, where users can change the information they signed up with (name, state, country, zip, password, etc.). This page works perfectly fine, it updates everything, it's just that when users come I have three slight problems:
1) When users sign up, they choose a state. Let's say I signed up with Alabama...it has "AL" stored in my database. Now, when users go to the "My Account" page, how do I make the dropdown menu automatically scroll down and have preselected the "AL" selection (Alabama)?
2) Same problem happens with Country, if I figure out how to fix the state, this will be easy to fix
3) In the "My Account" page, I also allow users to change their password. However, when they come to the page, the password box is blank, and they are FORCED to type in a new password to update their account information. How do I make it fetch the password from the database, and have it in the textbox? I use MD5 encryption, does this mean I can't decrypt it and have it appear (as a password) in the box? With all my other textfields, this worked, but with the password, when I type:
<input type="password" name="passwd" value="<?php echo $password;?>" maxlength="10">
it doesn't output the password in the box, it is just a full textbox and probably, when decrypted, says exactly what was in the initial value box (<?php echo $password;?>). How can I get around this?
Thanks a lot guys! Any help would be appreciated!
-influx.