php4-beta | 200004
Date: 04/19/00
- Next message: Jonas Jochum: "[PHP4BETA] Regex Question/preg_replace"
- Previous message: Andrei Zmievski: "Re: [PHP4BETA] cvs: /php4/ext/standard basic_functions.c"
- Next in thread: Sascha Schumann: "Re: [PHP4BETA] Browser BACK/Forward Button with Form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: Jonas Jochum: "[PHP4BETA] Regex Question/preg_replace"
- Previous message: Andrei Zmievski: "Re: [PHP4BETA] cvs: /php4/ext/standard basic_functions.c"
- Next in thread: Sascha Schumann: "Re: [PHP4BETA] Browser BACK/Forward Button with Form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

