PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #4256

Consturct with REQUEST_URI instead of PHP_SELF

Details

Request #4256Consturct with REQUEST_URI instead of PHP_SELF
Submitted2005-05-01 12:07 UTC
Fromammarali at yahoo dot com
StatusBogus
PackageHTML_QuickForm
PHP VersionIrrelevant
OSFedora Core 3
Roadmaps(Not assigned)

Comments

[2005-05-01 12:07 UTC] ammarali at yahoo dot com

Description:
------------
There's a bug written against the QuickForm_Controller but regarding mod_rewrite. I think this belongs in QuickForm itself.

------

I have a few pages which contain "sub-forms" and preserving the query part of the URL is needed. For example:

/user.php?id=6838&subform=someform

After playing around with QuickForm for a while, I think that using $_SERVER['REQUEST_URI'] instead of $_SERVER['PHP_SELF'] in the constructor will do the trick. I did run into a problem with paged forms, but that's a Controller problem, I think. I'm trying to find out.

I did try out a few things, like updating the attributes with the 'action' I want, but had no luck.

Anyway, I think that using the REQUEST_URI key makes more sense and offers more possibilities. It might need a call to html_entities_decode to wrap around it though.

Thanks for all the wonderful work!!!
AA;

Reproduce code:
---------------
N/A

Expected result:
----------------
Have any parameters in the URL preserved across form invocations.