I have a site that uses a GET form so that the user can specify a zipcode and then provide sorted results by distance based on this record. If zipcode is not present, it simply displays all the results.
My code works great. The problem is when I go from page 1 to page. I am losing the query string.
For other technical reasons, I cannot use the POST method. In particular, I need to be able to save this request state in some way and check the URL of the requested page and repeat this query line if it is empty.
Any thoughts on how to do this? The site uses a lot of jQuery, but I'm not sure that jQuery has a way to remember this line across multiple pages. The site also uses PHP. I don't mind storing the results in a PHP session variable, and then somehow restoring the URL, but I was hoping this would be a little more straight forward. Thanks for your thoughts
blue
source share