Re: QuickFrom Controller URL big problems

From: Date: Wed, 26 Jan 2005 11:52:25 +0000
Subject: Re: QuickFrom Controller URL big problems
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17166@lists.php.net to get a copy of this message
Hi, I'm really not an expert, but can't you pass this params in POST mode? Perhaps with a hidden field of the QFC. Toni. El mié, 26-01-2005 a las 08:40 +0000, PHPDiscuss - PHP Newsgroups and mailing lists escribió: > First of all, I'd like to thank everybody, Justin, Alexey ... for their > help and their job on Pear packages. > > I'm starting a project with DB, DataObject, Datagrid, Quick Form > Controller, perhaps FormBuilder and others... and I really want to go on > with this because I think I'll save a lot of time and I'll keep it for the > logic process which is much more important i think ... > > I still have some technical problems but I'm keeping the faith, ans I > search in the initial code and on posts in the mailing ... :) > > One of these big problems is about Quickform Controller, I already post > some questions about these but with no response. > And I' really think that other persons had or will have the same problems. > > Actually, i'd would like to keep my current URL query string (parameters > and values when i go to a QFC multi-page first page) whatever I do with > the QFC on validation, on submission in a > wizard with next and back action ... > > ex: the url for going to my first page of a QFC is > > http://localhost/index2.php?mod=admin&act=insert > > and I *MUST* keeping this parameters (mod and act) url all the time ! > > But after validation and click on the next button to go to the second page > or if i do server validation rules before or if i submit and process the > second page of QFC, the initial parameters are erased and i got : > > http://localhost/index2.php?_qf_page2_display=true > > ok but why can't QFC keep it ? (a lot of web site use no frames and need > url parameters from page to page). > I saw a tip for QF package > > http://pear.php.net/manual/en/package.html.html-quickform.intro-faq.php#AEN41974 > but I think it's another thing. > > So, i've tried the method in the QFC faq : > > 1-on the first page of the controller : > > $data =& $this->controller->container(); > $data['_url_param'] = $my_initial_query_string; > > 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. > Idem for submission and process of data in the last page of the QFC. > > Is it possible to have a quick example of code, I will really help. > > thx ! > > JP.Dumont >

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