Re: Pager and $_SERVER['QUERY_STRING']
| From: | Matthew Weier O'Phinney | Date: | Sat, 19 Mar 2005 20:02:41 +0000 |
| Subject: | Re: Pager and $_SERVER['QUERY_STRING'] | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18152@lists.php.net to get a copy of this message | ||
* Torsten Roehr <roehr@zilleon.com>:
> is there a way to tell Pager to ignore the existing $_SERVER['QUERY_STRING']
> when building the URLs? This is necessary when an action has been executed
> (e.g. index.php?userId=1&deleteUser) and should then not be part of the
> generated URLs anymore. My quick fix was manually resetting
> $_SERVER['QUERY_STRING'] to '';
>
> This could easily be achieved with an option called 'ignoreQueryString' that
> defaults to false to keep BC. If the maintainers agree with this I would
> happily provide a patch/text diff atop the current CVS version.
My understanding is that $_SERVER['QUERY_STRING'] *is* ignored if the
extraVars parameter has been passed to the Pager factory. You may want
to test this for yourself, though.
--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org