I'm trying to achieve multiple pagination in one page.
The pagination for all the results, is working.
But except from the main results, i want to include different options.
For example, in the image below i have three more options,
Newest, Reputation, Oldest
So, i want multiple pagination for all these options.
In the page that i want to display the results, i have multiple isset()
, in order to achieve that.
<div id='paginationUsers'>
<?php
//for all the results that displaying first.
if(isset($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = 1;
}
echo "<input type='hidden' id='pageAll' value='".$page."'>";
// for the Newest results
if(isset($_GET['pageNewest'])) {
$pageNewest = $_GET['pageNewest'];
} else {
$pageNewest = 1;
}
echo "<input type='hidden' id='newPage' value='".$pageNewest."'>";
//for the Oldest results
if(isset($_GET['pageOldest'])) {
$pageOldest = $_GET['pageOldest'];
} else {
$pageOldest = 1;
}
echo "<input type='hidden' id='oldPage' value='".$pageOldest."'>";
//for the Reputation results
if(isset($_GET['pageReputation'])) {
$pageReputation = $_GET['pageReputation'];
} else {
$pageReputation = 1;
}
echo "<input type='hidden' id='reputationPage' value='".$pageReputation."'>";
?>
</div>
Ofcourse, in that way cannot work as you can see in the code.
So, is it possible to include multiple isset
in one page?