You are here: [pear] persistent parameter with HTML_QuickForm_Page « PHP Programming Language « IT news, forums, messages
[pear] persistent parameter with HTML_QuickForm_Page

Posted by stab on 01/03/06 14:00

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация