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 » Pager » Bug #4277

$_POST['pageID'] works only with httpMethod => 'POST'

Details

Request #4277$_POST['pageID'] works only with httpMethod => 'POST'
Submitted2005-05-04 08:28 UTC
Frommfranzil at adriaweb dot it
Assignedquipo
StatusClosed
PackagePager
PHP Version4.3.9
OSLinux
Roadmaps(Not assigned)

Comments

[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';
}