HTML_QuickForm_Controller + URL parameters
| From: | Aaron | Date: | Mon, 15 Dec 2003 22:47:28 +0000 |
| Subject: | HTML_QuickForm_Controller + URL parameters | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9544@lists.php.net to get a copy of this message | ||
Hi!
I can get the QuickForm_Controller to work except for when I have a page
that receives parameters (related to page navigation) via the url.
For example I have a plain page that loads at index.php without the form,
but index.php?page=1 loads a page with the form. Therefore when I submit
the form it takes me back to index.php, instead of index.php?page=1. I've
noticed that the QuickForm_Controller does not let you load a custom action
for the form's attributes, so I can't load the action in the form directly
as I could with QuickForm. Is there a solution, or am I just doing
something completely wrong?
I have tried modifying the constructor for HTML_QuickForm_Page to include an
action parameter. That implementation worked correctly with the wizard
examples, however I am not sure of the side effects caused by this
alteration. I have also tried to access the page's attributes array
directly, however, I could not modify the form's action. FYI, I have tried
RTM and searching the newsgroups for an answer, and I can't find anything.
I've only started working with QuickForm today -- so I apologize if I'm
missing something completely obvious.
Thanks!