Re: [PHP4BETA] Browser BACK/Forward Button with Form

From: Date: Wed, 19 Apr 2000 14:36:02 +0000
Subject: Re: [PHP4BETA] Browser BACK/Forward Button with Form
Groups: php.version4 
Request: Send a blank email to php-version4+get-13737@lists.php.net to get a copy of this message
> At 11:29 AM 1/1/2000, Sascha Schumann wrote: > >On Fri, Dec 31, 1999 at 08:46:55PM +0100, Tilli Weissenberger wrote: > > > On some forms I created the user gets the following error message, when > > > trying to use the BACK or FORWARD buttons on the browser: > > > > > > Warning: Page has Expired The page you requested was created using > > > information you submitted in a form.[...] > > > information for you. > > > > Tell the user not to use back/forward buttons. I know it is > > kind of annoying,[...] > > That's the most common answer I've heard to the problem, here or on the > phplib list. But I can't really believe there isn't a better answer. > > My problem is not so much with the user using a back button, but with my > ability to show them the problems in a form they're filling in. > Judicious use of a bit of Javascript can sometimes be helpful here. If use of the back button can cause havoc, open up the form in a new window in which the buttons have been suppressed. You can also use Javascript to do a bit of consistency checking, or even make the form dynamic, with various fields altering on the fly in accord with selections made in earlier fields. Some things are best done on the server side (PHP) and others on the client (Javascript). Cheerio, R. P. C. Rodgers

« previous php.version4 (#13737) next »