punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
So, I'm generating these great submission-confirmation pages with Template Toolkit: when a user submits their choices through an html form, we process it with cgi.pm, store the results in our mysql db, and return a page confirming all the information they just submitted.
The user's happy, so they click on to another page - but then they have a doubt and hit "Back" on their browser to look at the confirmation page again - and they get the ugly "Warning page has expired" page. "The page you requested was created using information you submitted in a form. This page is no longer available....To resubmit your information and view this Web page, click the Refresh button. "
Of course, if they do hit refresh, it does cause a resubmit, and the system is designed to catch a double submission and throw a warning, not the page they just wanted to double check.
Is there anything I can output with the confirmation page - I'm thinking some kind of header - that will allow the user to go "Back" to the page without the browser thinking it has to re-submit the form, and just pull it out of cache?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to avoid "Page expired" going back to post-CGI form confirmation?
by Joost (Canon) on Apr 13, 2007 at 16:40 UTC | |
|
Re: How to avoid "Page expired" going back to post-CGI form confirmation?
by varian (Chaplain) on Apr 13, 2007 at 17:28 UTC |