relevant more.php code
Code: Select all
<?php
$tpl = new tpl("more");
$dat = Array();
$fnd = 0;
$pastcount = $_GET['pastcount'];
$rcount=$pastcount+3;
$res = mysql_query("select * from ratings order by tm desc limit $rcount,3");Code: Select all
<form method="get" action="/more.php">
<div align="center">
<input name="pastcount" type="hidden" value="<?$pastcount;?>">
<input value="Next 3 Reviews" type="submit"></div>the problem is that the template file does not echo the variable, so it does not work. any idea why the variable is not echoing and how i can get it to?