[pear] persistent parameter with HTML_QuickForm_Page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

[pear] persistent parameter with HTML_QuickForm_Page

From: stab <foobar@example.invalid>
Date: Tue Jan 03 2006 - 13:00:07 CET

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
Received on Tue Jan 17 16:51:48 2006