From: <po...@mi...> - 2005-09-22 16:34:11
|
Hi all. "The page you are trying to view contains POSTDATA that has expired from cache. If you resend the data, any action the form carried out (such as = a search or online purchase) will be repeated. To resend the data, click = OK. Otherwise, click Cancel." - Firefox Are you still reading this? Please forgive the annoying beginning. How = many times have you seen the POSTDATA statement while using a web = application? (I guess the text varies depending on the browser you are using, but the meaning should be the same). It occurs when you hit the browser back button, trying to get back to = the previous page, but only if that specific page is the result from a POST action. Let me give you an example from phpWebSite, just in case I have lost = you: 1. Create an announcement After saving the announcement, you will return to the announcement list. 2. Click on a link. Any link will do. Pick for instance the link showing = the announcement you just have created. Now try to go one step back, using the back button in your browser. You = will now get the POSTDATA statement from the browser, asking you what to do. There is a solution to this problem, and the keyword is redirect. It is described in details in this article: http://www.theserverside.com/articles/article.tss?l=3DRedirectAfterPost The summary of the article from theserverside is: - Never show pages in response to POST - Always load pages using GET - Navigate from POST to GET using REDIRECT I am not sure, if php supports the redirect function, but I know that I would like to get rid of the annoying possibility of posting data twice. Hopefully implementing the redirect strategy (if possible) is not too = late to be considered as a part of the upcoming release of Fallout.=20 Michael H. Rasmussen TechElephant |