Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.1

Request #4277 $_POST['pageID'] works only with httpMethod => 'POST'
Submitted: 2005-05-04 08:28 UTC
From: mfranzil at adriaweb dot it Assigned: quipo
Status: Closed Package: Pager
PHP Version: 4.3.9 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-05-04 08:28 UTC] mfranzil at adriaweb dot it
Description: ------------ I have a form that reload an html page with Pager class. To remenber the 'actual page of Pager' I pass via post method the varible pageID. If the httpMethod is not set as 'POST' the method getCurrentPageID() returns always 1. All works fine with version 2.2.7. Reproduce code: --------------- $l_aPagerParams = array( 'mode' => 'Sliding', 'perPage' => 12, 'delta' => 2, 'totalItems' => 40, 'append' => true, 'separator' => '-', 'clearIfVoid' => true, ); if(isset($_POST['pageID'])){ $l_aPagerParams['httpMethod'] = 'POST'; }

Comments

 [2005-05-04 15:33 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.