etxnreg Posted November 6, 2009 Share Posted November 6, 2009 Hi, I have a problem with drop-down list that I can not solve. I have some drop-down lists and I would like to remember the last value when I use the back button or return to the site again. I assume that cookies could be a way forward. Grateful for any assistance Niklas <form name="next" method="POST" action="igp.php" style="margin:0px"> <select name="slot1" style="position:absolute;left:979px;top:361px;width:48px;z-index:13"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <select name="port2" style="position:absolute;left:1087px;top:402px;width:47px;z-index:23"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> <input name="Next" type="submit" value="Next" style="position:absolute;left:1375px;top:719px;z-index:132"> Quote Link to comment https://forums.phpfreaks.com/topic/180593-drop-down-list-last-value-should-be-remember/ Share on other sites More sharing options...
rarebit Posted November 20, 2009 Share Posted November 20, 2009 If your users click back without clicking submit then you should look at ajax to update any in page updates... Quote Link to comment https://forums.phpfreaks.com/topic/180593-drop-down-list-last-value-should-be-remember/#findComment-961953 Share on other sites More sharing options...
Jarod Posted November 22, 2009 Share Posted November 22, 2009 use cookies or sessions (in php) Quote Link to comment https://forums.phpfreaks.com/topic/180593-drop-down-list-last-value-should-be-remember/#findComment-963027 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.