Darkmatter5 Posted July 24, 2008 Share Posted July 24, 2008 I have a page that has a drop-down list of items with a load button to essentially retrieve a records current data and display it on the page so a user can fill out text boxes and submit changes to the record, but have the current data side by side of the text boxes for editing, so the user can see what it is they are editing. Now if I select a an item from the list and click the load button the record is displayed, but the list selection is reset to the default. How can I set a variable to be the id of the record loaded from the list and pass that variable to the page so it's retained and "remembered" when the page is reloaded so I don't have to reselect the record after loading it to actually edit it? If I'm not making sense let me know! Thanks! Link to comment https://forums.phpfreaks.com/topic/116418-variable-in-url-passing-question/ Share on other sites More sharing options...
Jabop Posted July 24, 2008 Share Posted July 24, 2008 You could use $_POST or $_GET and use basic HTML (selected="selected") to get the select box where you want it. Link to comment https://forums.phpfreaks.com/topic/116418-variable-in-url-passing-question/#findComment-598670 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.