I am not sure if I should do this via JavaScript or PHP, but I am going to give this forum a try to see if I can get help on this problem.
I have this form, whose page will be reloaded to add new values to its drop down menu via php from a mysql database. In order to pull the newly added values, this page needs to be reloaded.
I want the user to keep all the data they have written thus far after the reload.
I need a script that will allow to store those values temporarily (without a submit) so that the user need not type them again.
Example:
I have a form with 12 fields to fill out. Above 5 of those fields (all drop down boxes) is an "add new item" option. This will allow the user to add the new item if it is not in the database, the next time the page is loaded the dropdown box will contain the new item.
The problem is that I want to keep all the previous user selections/input up to this point.
I could get around this problem if there was a way to "refresh" just the specific drop down box, but I doubt that is possible.
hope someone can help..
thanks