RE: [PEAR] QFC : How to pass navigation parameters to each page?
| From: | Mike Carter | Date: | Fri, 14 Nov 2003 16:39:26 +0000 |
| Subject: | RE: [PEAR] QFC : How to pass navigation parameters to each page? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8948@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ignatius Reilly [mailto:ignatius.reilly@free.fr]
>
> Then each of your page in display() mode can repeatedly pass
> the "pageid" and "section" elements without risk of collision.
This is the similar to what I opted to do. I only set the constants when the
user first arrives at the page containing the QFC though..
// --- Should We Initalise The Form?
if(!stristr($_SERVER['HTTP_REFERER'], $_SERVER["PHP_SELF"])) {
// --- Reset the container
$wizard->container(true);
$wizard->setConstants(array('conceptType' =>
$GLOBALS['vars']["conceptType"]));
}
> I would be glad if someone knowledgeable could confirm that
> this is intended behaviour of the setConstants() method.
The offical use for this method is provide a value to initalise a form
element with which cannot be over ridden with a GET or POST.
http://pear.php.net/manual/en/package.html.html-quickform-controller.html-qu
ickform-controller.setconstants.php
Regards,
Mike C.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________