I have read about the Post-Redirect-Get patterns and session token based methods of stopping form resubmission on page refresh but I have another element in the mix that is creating a challenge.
I have a search form. On submitting, I am processing the input as POST, get search results and show it on the next page. If I use the PRG pattern, I am not sure how I am going to show the results on the final page (after GET). I am referencing the diagram on wiki: http://en.wikipedia.org/wiki/Post/Redirect/Get#mediaviewer/File:PostRedirectGet_DoubleSubmitSolution.png. This works fine when you insert data and show some kind of success page but what about fetching records from the DB? How can I make PRG work for a search form?
If I think about user experience, if they press F5 on the search results page, it should simple refresh and present the existing results. If I leave it as it is, it will confirm the user if they want to resubmit the form. If, I add the parameters as GET, then I can probably make it work but I am trying to append input values to the URL.
Thoughts pls.