I made this pagination part of my script but i would like to use the pages like this 1|2|3| instead of using push buttons for the next and previous.
can some one help me out with this.
$per_page = "20";
$beg = "0";
$prev = $beg-$per_page;
$prevs = $beg-0;
$pend = $beg;
if ($prevs > 0)
echo "<input type=button value=<--Back onclick=\"location.href='?m1=$m1&location=$location&page=$page&beg=$prev&end=$pend'\"> ";
$next = $beg+$per_page;
$nend = $next+$per_page;
if ($numitems < $end){
echo "";
}elseif ($numitems == $end) {
echo "";
}else {
echo "<input type=button value=Next--> onclick=\"location.href='?m1=$m1&location=$location&page=$page&beg=$next&end=$nend'\">";
}