Re: get or post

From: Date: Tue, 14 Nov 2000 15:51:35 +0000
Subject: Re: get or post
Groups: php.db 
Request: Send a blank email to php-db+get-4427@lists.php.net to get a copy of this message
Recently I asked about the problem of the user losing their input over a form that spans multiple screens if they hit the back button (because of a post)... Andy has suggested that I use a temp file to hold the input and track the user w/cookies until the form is finished... Does anybody have an example or pointer to an example of code that I may look at?... Thanks Luis --- Andrew Rush <andy@mainetoday.com> wrote: > > On Friday, November 10, 2000, at 04:27 PM, Adv. > Systems Design wrote: > > > Questions: is this due to using a post rather than > a > > get form action? > > no, this is due to your server delivering a no-cache > header to the browser when the PHP page is > requested. > > > Will a form GET fix this error? > > you don't want to use GET as a form method. it's way > too easy to spoof (meaning someone can simply change > the value in the querystring to see something > different, which you may not want another person to > see) and a URL has a character limit (256 i think). > > i would store the data in a temporary location (like > a text file) until the sequence is completed and > then process it to do whatever you intended in the > first place. if you do this, and track users with a > cookie, you can then let the user pick up where they > left off in case of a catastrophic error on their > end, such as a power failure or browser crash. > > __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/

« previous php.db (#4427) next »