Re: Quick Form Controller and URL parameters

From: Date: Fri, 21 Jan 2005 11:05:39 +0000
Subject: Re: Quick Form Controller and URL parameters
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17080@lists.php.net to get a copy of this message
Alexey Borzov wrote: > Hi, > PHPDiscuss - PHP Newsgroups and mailing lists wrote: > > I'm using Quick Form Controller and I've got a problem with passing some > > parameters in the url from page to page in a controller. > > > > I've tried hidden fields (with default POST action) with no success. > > > > Can we do it and do you have an example pliz ? > > http://pear.php.net/manual/en/package.html.html-quickform-controller.faq.php > More precisely, "How to pass additional data between pages of the form?" section. Thx for the tip. Actually, i'd would like to keep my current URL query string (parameter and value) whatever I do with the QFC on validation, on submission in a wizard with next and back action ... As QFC erase the current URL query string on the first action, I've tried the method in the faq : 1-on the first page of the controller : $data =& $this->controller->container(); $data['_url_param'] = $_SERVER["QUERY_STRING"]; //i can parse it to detect this my query string and not the qfc's 2-on the jump.php file i put : $data =& $page->controller->container(); and replace the last line with : header('Location: ' . $url . '&' . $data['_url_param']); Am i right ? BUT, when the form is not valid with serv_side validation and i do some action, it disappear. I miss something I think. Question : why is there not a feature in QFC which keep the current querystring ? thx ! JP.Dumont

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