Hi,
I have a form that returns search results from a number of search parameters.
Each row has a link to a details page that selects the relevant info based on the id passed.
What is the best method to return from the details page to the results page, keeping the search results from last time?
I suppose I could pass all the parameters to the details page and then back again to the search page, but this is messy and requires even more validation/ protection against injection.
An alternative is to use $_SERVER['referer_url'] but I know if can be hit and miss.
I notice that ebay dont pass the search parameters to the details page via the URL. However the link back to search results on the details page has the search parameters in there. Session variable perhaps? Such as this:
http://www.dezinerfolio.com/2008/01/09/back-to-previous-page-php