Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] Browser BACK/Forward Button with Form From: R. P. Channing Rodgers, M.D. (rodgers <email protected>)
Date: 04/19/00

> 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

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>