From: Matthew M. <ma...@tu...> - 2005-09-22 20:40:30
|
We can work on getting more post completions to have redirects at the end. The problem is that after a post you may want to post a message. If you want that message to be seen you either have to use a meta redirect or you would have to pass the message itself or a trigger to the next page. So it depends on what action is being taken. Matt On Thu, 2005-09-22 at 18:33 +0200, Michael H=C3=B8j Rasmussen wrote: > Hi all. >=20 > "The page you are trying to view contains POSTDATA that has expired fro= m > 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 >=20 > Are you still reading this? Please forgive the annoying beginning. How = many > times have you seen the POSTDATA statement while using a web applicatio= n? (I > guess the text varies depending on the browser you are using, but the > meaning should be the same). >=20 > It occurs when you hit the browser back button, trying to get back to t= he > previous page, but only if that specific page is the result from a POST > action. >=20 > Let me give you an example from phpWebSite, just in case I have lost yo= u: >=20 > 1. Create an announcement >=20 > After saving the announcement, you will return to the announcement list. >=20 > 2. Click on a link. Any link will do. Pick for instance the link showin= g the > announcement you just have created. >=20 > 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. >=20 > 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 >=20 > The summary of the article from theserverside is: >=20 > - Never show pages in response to POST > - Always load pages using GET > - Navigate from POST to GET using REDIRECT >=20 > 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. >=20 > Hopefully implementing the redirect strategy (if possible) is not too l= ate > to be considered as a part of the upcoming release of Fallout.=20 >=20 >=20 > Michael H. Rasmussen > TechElephant >=20 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server.=20 > Download it for free - -and be entered to win a 42" plasma tv or your v= ery > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.p= hp > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers --=20 Matthew McNaney Electronic Student Services Appalachian State University http://phpwebsite.appstate.edu |