Re: Problem with Pager 2.1.0
| From: | Stephan Wentz | Date: | Mon, 12 Jan 2004 22:35:34 +0000 |
| Subject: | Re: Problem with Pager 2.1.0 | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25021@lists.php.net to get a copy of this message | ||
Lorenzo Alberton wrote:
On Mon, 12 Jan 2004 22:44:56 +0100, Stephan Wentz wrote:No, this does not work, Pager_Common reads the get-variables through the $_SERVER['QUERY_STRING'] on line 572 :( Any other suggestions? Maybe there should be another option which receives an key-value-array with url-parameters that should be added. Has noone ever needed this? Seem quite obvious to me... Bye, StephanHow do I add URL-Variables to the Pager? Of course it adds all $_GET-Variables, but I need to carry a few variables that come in through a POST-call first time.what about setting them as $_GET variables before building the pager? ========== if (isset($_POST['myvar']) {$_GET['myvar'] = $_POST['myvar'];} $pager = new Pager($options); ==========