<form role="form" name="boton" action="../cd/pre.php" method="POST"">
<table class="table">
<div class="alert alert-info">
<h2>Mis Encuestas</h2>
</div>
<tr>
<th>Codigo</th>
<th>Nombre</th>
<th>Fecha</th>
<th>Consultar</th>
</tr>
<?php
while ($lista=$rs->fetch_array(MYSQL_BOTH)) {
//$_SESSION['id'] =$lista['idEncusta'];
echo '<tr>
<td>'.$lista['idEncuesta'].'</td>
<td>'.$lista['NomEncuesta'].'</td>
<td>'.$lista['fecha'].'</td>
<td> <input type="submit" name="boton" value="Ver"> </td>
</tr>';
}
?>
<input type="hidden" name="id" value="<?php echo $lista['idEncuesta']; ?>">
</table>
</form>
pre.php
<?php
require("conexion.php");
$id=$_POST["id"];
//session_start();
//$id=$_SESSION["id"];
$alumno = "SELECT * FROM preguntas where(idEncuesta='$id')";
$rs=$con->query($alumno);
?>