What I want to be able to do is include them in the link that moves the user from page to page. So the element in the array turnon[] moves from page to page.
while ($row=mysql_fetch_array($check_pins)) {
$username=$row[0];
print"<td align='right' class='charts' width='55%'>$username</td><td align='left'><input type='checkbox' name='turnon[]' class='charts'></td>";
print"</tr>";
}//end while
$pages=intval($numrows/$limit);
if ($numrows%$limit) {
$pages++;
}
print"<tr><td colspan='2' align='center'>";
for ($i=1;$i<=$pages;$i++) {
$newoffset=$limit*($i-1);
print "<a class='pages' href=\"subDistributors.php?cmd=assignpins&offset=$newoffset&action=deactivate&subid=$subid&subname=$subname\">$i</a> \n";
}
if ($offset>1) {
$prevoffset=$offset-$limit;
print "<a class='pages' href=\"subDistributors.php?cmd=assignpins&offset=$prevoffset&action=deactivate&subid=$subid&subname=$subname\">$Prev</a> \n";
}
if ($numrows>($offset+$limit)) {
$nextoffset=$offset+$limit;
print "<a class='pages' href=\"subDistributors.php?cmd=assignpins&offset=$nextoffset&action=deactivate&subid=$subid&subname=$subname\">$Next</a><p>\n";
}
}
print"</td></tr>";