Hi
I've attached my code (with a .txt extension rather than .php to allow it to be uploaded).
The database (connection removed in code) is queried for a unique site identifier. The identifier is made up of:
a town
a location within the town
a room at the location
a flag for the type of information collected
I need to split these out and populate 4 drop-down boxes with the results.
My code is supposed to refresh the page each time a selection form a box is made, which it does, but it loses all previously made selections, e.g.
First Pass - select town
Town selected = Glasgow
location = <null>
room = <null>
flag = <null>
Second pass - select location
Town selected = <null>
location = High Street
room = <null>
flag = <null>
How do I retain the information for each drop-down box and end up with 4 values? I'm fairly new to PHP / Javascript and know next to nothing about Ajax.
Hope this is clear?