Il problema è un po più complesso di quello ke mi hai suggerito

ti posto il mio sorgente iniziale per la creazione della tabella dinamica :

<form method="post" action="indexcli.php?lnk=15">
<table border=1 align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="41" class="descrizione">Codice</td>
<td width="74" height="21" class="descrizione">Nome Stanza</td>
<td width="47" class="descrizione">Numero</td>
<td width="64" class="descrizione">Complesso</td>
<td width="54" class="descrizione">Tipologia</td>
<td width="41" class="descrizione">Prezzo</td>
<td width="20" class="descrizione">Sel.</td>

<?

//setto tutto a libero
$MySql = "UPDATE $St SET $St.stato='d' WHERE $St.id<'3000'";
$Update = mysql_query ($MySql)
or die ( "Non riesco ad eseguire la richiesta $MySql");

$flag = "o";
$MySql = "SELECT * FROM $PrSt WHERE ('$datapre' between $PrSt.datapre and $PrSt.data)";
$query = mysql_query ($MySql)
or die ( "Non riesco ad eseguire la richiesta Select compreso");
while ($risultato = mysql_fetch_array ($query))
{

$indice = $risultato["id"];
$MySql = "UPDATE $St SET $St.stato='$flag' WHERE $St.id='$indice'";
$Update = mysql_query ($MySql)
or die ( "Non riesco ad eseguire la richiesta Update");
}


$MySql = "SELECT * FROM $St WHERE ($St.stato!='$flag')";
$query = mysql_query ($MySql)
or die ( "Non riesco ad eseguire la richiesta select finale");
while ($valori = mysql_fetch_array ($query))
{
$a0 = $valori [ "id"];
$a1 = $valori [ "nomestanza"];
$a2 = $valori [ "numero"];
$a3 = $valori [ "complesso"];
$a4 = $valori [ "tipologia"];
$a5 = $valori [ "costo"];
$a6 = $valori [ "stato"];


echo "
<tr class=menu>
<td>".$a0."</td>
<td>".$a1."</td>
<td>".$a2."</td>
<td>".$a3."</td>
<td>".$a4."</td>
<td>".$a5."</td>
<td>
<input type=\"checkbox\" name=\"$a0\" value=\"$a0\">
</td>
</tr>" ;
}
?>
</tr>
</table>



<div align="center">
<input type="hidden" name="codfis" value="<? print $_POST['codfis'] ?>">
<input type="hidden" name="pagamento" value="<? print $_POST['pagamento'] ?>">
<input type="hidden" name="nome" value="<? print $_POST['nome'] ?>">
<input type="hidden" name="cognome" value="<? print $_POST['cognome'] ?>">
<input type="hidden" name="via" value="<? print $_POST['via'] ?>">
<input type="hidden" name="telefono" value="<? print $_POST['telefono'] ?>">
<input type="hidden" name="citta" value="<? print $_POST['citta'] ?>">
<input type="hidden" name="email" value="<? print $_POST['email'] ?>">
<input type="hidden" name="datapre" value="<? print $_POST['da'] ?>">
<input type="hidden" name="adata" value="<? print $_POST['a'] ?>">
<input class="formcolbut" type="submit" name="Submit" value="Prenota">
</div>
</form>

questo e la creazione della tabella e con i check ora ho bisogno della pagina ke legga sti dati.