parte del CODIGO
Código PHP:
else
{
echo "<form name='formR' method='POST' action='control_enc.php?do=res' >";
if($_SESSION['cant_control'] < $_SESSION['cant'])
{
$_SESSION['cant_control']+=1;
}
if($_SESSION['cant_control']==$_SESSION['cant'])
{
$hidden="hidden";
$_SESSION['mje']="Por Favor Guardar, Las ".$cant=$_SESSION['cant']-1 ." respuestas ya han sido registradas";
}
else
{
$hidden="visible";
}
echo"<table>";
echo "<th colspan='3'>Respuestas de la encuesta</th>";
echo "<tr><td><p>RESPUESTA ".$_SESSION['cant_control']." :</p></td>";
echo "<td><input type='text' name='resp'></td>";
echo "<td><img src='imagen/flechita.gif' onclick=\"location.href='control_enc.php?do=verif&t=$t';\" style=\"visibility:".$hidden."\"/></td></tr>";
echo "<tr><td colspan='3'>";
echo $_SESSION['mje'];
echo "</td></tr>";
echo "<tr><td colspan='3'><input type='submit' name='Listo' value='Listo'></td></tr>";
echo "</table><p> </p></form>";
}