Re[2]: [PEAR] QF/QFC: a question and a request
| From: | Massimiliano Bariola | Date: | Thu, 18 Dec 2003 09:35:27 +0000 |
| Subject: | Re[2]: [PEAR] QF/QFC: a question and a request | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9645@lists.php.net to get a copy of this message | ||
Hello Mike,
Wednesday, December 17, 2003, 5:59:11 PM, you wrote:
[about how to reset the defaults / container]
Mike wrote:
MC> I usually reset the container when I want to start over a controller process
MC> - this is usually when the person re-visits the PHP script from another
MC> page.
MC> I simply check the HTTP referer:-
MC> if(!stristr($_SERVER['HTTP_REFERER'], $_SERVER["PHP_SELF"])) {
MC> // --- Reset the container
$wizard->>container(true);
$wizard->>setDefaults(array('conceptType' => $conceptType));
MC> }
MC> Requires no parameters to be passed to the script in the URL.
Thanks Mike, I'll remember this possibility for future uses
--
Best regards,
Ing. Massimiliano Bariola Cell: ++39 329 3570098
REDLINK Italia S.a.s
http://www.redlinkitalia.it mailto:m.bariola@redlinkitalia.it
PGP Key:
http://www.redlinkitalia.it/PGP/MB_PGPKEY.txt