Parsing out a URL's query string is quite simple if you approach it th right way.
My QueryParser() will save you a lot of heartache.
Not only does it parse out the query string but also includes a bunch of useful methods, and it only puts a maximum of two members in the global namespace (none if you install it in a closure), and it's fully documented.
Airshow
Airshow
WiFi Lounge Lizard
2,782 posts since Apr 2009
Reputation Points: 370
Solved Threads: 388
Skill Endorsements: 9
Yes, I understand that.
Use QueryParser parses the query sting and makes its name|value pairs available as properties of an object.
That is one half of your problem solved.
The other half of the problem, setting the values of select menus, is most simply solved by using jQuery, which provides you with a command of the form:
$("#xxx").val($q.xxx);
A series of such statements will set each select menu in turn.
With jQuery and QueryParser installed on the page, you need just four javascript statements to make the whole thing work.
Airshow
Airshow
WiFi Lounge Lizard
2,782 posts since Apr 2009
Reputation Points: 370
Solved Threads: 388
Skill Endorsements: 9