PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to figure out how to make my form remember what was selected from a drop box when a user submits it but has to go back and correct their inputs.
Here is the code that I am using that needs to be remebered.
Here is some code for some "static" drop boxs I am using, it works good because the optional values are always the same. but in the dynamic list it is choosing any number of options from a list of over 2200 customer names.
how are your users "going back" to the form page? With the "back" button I presume...if so, there's not much you can do if their browsers dont' remember what the selected option was.
if you're posting back to the page, you can do this:
Thanks for the help, it works like you said. My form post back to itself for all the error checking, then once the user confirms everything the data is posted to an action page.