There is at least one other solution to the problem: you save all your data in javascript tables and use onchange() event on one drop down to populate another from respective javascript table. The javascript can be put in an external file (if the information doesn't change to often, so it can be cached by the browsers and load faster) or can be generated on the fly from php, every time the script loads, if it updates often.
I've done this for a site few years ago, when ajax wasn't an option. And it works like a charm :)
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7
I think it depends on how often the information that populates the drop-downs changes. If it doesn't change often (once a week, a month etc...), than the javascript may actually work faster and better for both user and server, because once the js file is cache, there is no more loading on the server.
If the data for the drop-downs changes regularly, than ajax is probably the best option; anyway, it seems there are some browsers that don't support ajax yet, so... some of the users may have problems using that form.
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7