I have a site that uses a GET form to allow a user to specify a zipcode, and then provide sorted results by distance based on that entry. If no zipcode is present, then it simply displays all results.
My code works great. The problem is when I change from Page 1 to Page 2 I lose my query string.
For other technical reasons, I cannot use the POST method. Specifically I need to be able to save this query state somehow and check the url of the requested page, and the reappend that query string if it's empty.
Any thoughts on how to do this? The site uses a lot of jQuery, but I'm not sure if jQuery has a way to remember this string across multiple pages. The site uses PHP as well. I don't mind storing the results in a PHP session variable and then reconstructing the URL somehow, but I was hoping it would be a bit more straightforward than that. Thanks for your thoughts
Blue