Home » HTML » Pager » Bug #4277
$_POST['pageID'] works only with httpMethod => 'POST'
Details
| 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) |
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';
}