I’m not sure that I am asking this question properly… I assumed that I would’ve already located various resources/examples out there. I work in PHP but think this is a jQuery or Ajax type of solution.
1) I want to present a page that has a dropdown selection of states at the top and also has links to other category pages below the drop down on the same page.
2) When a state is selected (and while on the same page) the selected value is passed directly to those links.
so if I choose “FL” then $state then populates with FL in the links.
I know I’ve seen this type of functionality in action somewhere, but seem to be drawing a blank finding examples.
Assuming that I understand your question, and you want to append the selected state code to the link URLs as a querystring parameter, you could do it like this:
This assumes that you don’t have any other querystring parameters in these links. You can see a working version here: http://jsfiddle.net/nrabinowitz/PbmL9/