At the top of my site I have a 3 part drop down menu: Year, Make, Model. When they reach model and press GO they're takin to the appropriate page. How do I make it so it saves this customers chosen selection at the top so they can press "go" on any other page without having to re-select the data? thank you
You need to store the information in cookie or you could ajax it into a database and retrieve it that way.
Any ideas on the code needed to store the users selection? I think Javascript would be pretty straight forward
Are you using any sort of library such as jQuery on your site? This would make it much easier for storing and retrieving cookies.
If you have access to sessions you can probably use them to store the data, but that would be more for traditional single select. You may want to json ajax to get the select options and selected option. Like a Country, State and City Select groups, the second and third select box's options are going to be different depended on what the previous ones select value was. Might be helpful to get the values and store them in sessions and place in hidden inputs and if detected simply dont show the top section where they make a selection. Make that a link they have to click to re-select.
its pretty simple with javascript, maybe even try the new html5 local data storage (which seems to be better than cookies). This script should help you quickly store the selections in cookies (for either php or javascript to process) https://github.com/carhartl/jquery-cookie/blob/master/jquery.cookie.js