Re: QFC: form with external parameter, managing the defaults

From: Date: Mon, 15 Mar 2004 10:46:44 +0000
Subject: Re: QFC: form with external parameter, managing the defaults
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11299@lists.php.net to get a copy of this message
Quite clever. Thanks _________________________ "Mike Carter" <mikeatwork@ukonline.co.uk> wrote in message news:11054A7BC9A71245BCBB991757932573161A31@mail.koa.uk.com... > > > > -----Original Message----- > > From: Ignatius Reilly [mailto:ignatius.reilly@free.fr] > > > > I've been confronted to the following problem: > > > > - starting QFC with an external REQUEST parameter, and > > loading the defaults > > accordingly > > - when the user abandons the form mid-way (for example with the back > > button), the defaults remain set, even though she now chooses another > > REQUEST parameter > > > > My solution is to simply check the page referer: > > if(!stristr($_SERVER['HTTP_REFERER'], $_SERVER["PHP_SELF"])) { > // --- Erase any previous container > $wizard->container(true); > > // --- Set defaults... > } > > Regards, > > > Mike C. > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit > http://www.messagelabs.com/email > ______________________________________________________________________

« previous php.pear.general (#11299) next »