
June 22nd, 2004, 02:40 AM
|
|
|
|
Join Date: Apr 2007
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Pager help- paging $_POST data
Essentially, i'm trying to page(package pager) the $_POST data. It's fine for the first page but when I click the links for other pages the page data is empty (because $_POST is empty). How I get around this problem?
Any help- thx. in advance.
lkj
php Code:
Original
- php Code |
|
|
|
'itemData' => $_POST, 'perPage' => 10, 'delta' => 8, // for 'Jumping'-style a lower number is better 'append' => true, //'separator' => ' | ', 'clearIfVoid' => false, 'urlVar' => 'entrant', 'useSessions' => true, 'closeSession' => true, //'mode' => 'Sliding', //try switching modes 'mode' => 'Jumping', ); $pager = & Pager::factory($params); $page_data = $pager->getPageData(); $links = $pager->getLinks(); $selectBox = $pager->getPerPageSelectBox(); ?> <html> <head> <title>new PEAR::Pager example</title> </head> <body> <table border="1" width="500" summary="example 1"> <tr> <td colspan="3" align="center"> <?php echo $links['all']; ?> </td> </tr> <tr> <td colspan="3"> <pre><?php print_r($page_data); ?></pre> </td> </tr> </table>
|