RE: [PEAR] QFC: form with external parameter, managing the defaults

From: Date: Mon, 15 Mar 2004 10:01:09 +0000
Subject: RE: [PEAR] QFC: form with external parameter, managing the defaults
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11297@lists.php.net to get a copy of this message
> -----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 (#11297) next »