By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,481 Members | 3,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,481 IT Pros & Developers. It's quick & easy.

[pear] persistent parameter with HTML_QuickForm_Page

P: n/a
Hello everybody,

I am learning HTML_QuickForm_Controller pear extension.

situation:
In my project the pages are called by a op get parameter
(index.php?op=foobar) and this needs to remain there even when forms are
submitted.

the problem:
Unfortunately the attribute "action" of the html tag "form" is always
"index.php", instead of "index.php?op=foobar". I have tried to pass
"index.php?op=foobar" to the constructor of HTML_QuickForm_Page, with no
results. It is still "index.php" (_self).

When I worked only with QuickForm (with no controller) i used to set a
hidden parameter "op" in the form and then handling it with a $_REQUEST
instead of a $_GET.

But now, with HTML_QuickForm_Controller, after the form data have been
submitted the page refreshes (via http headers) and preserves no
informations about the "op" parameter, so I get allways in the home page.

Do you have any suggestion about modifying the action attribute of
QuickForm_Page in a clean way (or even a working workaround)?

Any help will be greatly appreciated.

regards,
-Francesco

P.S. sorry for my poor english
Jan 3 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.