Re: QuickFrom Controller URL big problems

From: Date: Wed, 26 Jan 2005 14:31:48 +0000
Subject: Re: QuickFrom Controller URL big problems
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17170@lists.php.net to get a copy of this message
Hi, PHPDiscuss - PHP Newsgroups and mailing lists wrote:
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
As HTML_QuickForm_Page is a subclass of HTML_QuickForm, you can just change the form's "action" attribute: $page->updateAttributes(array('action' => 'Your page with all the fancy parameters'));

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