salve a tutti
ho due tabelle:
STUDENTI (id, codice, nome)
VOTI (id, codice, nome, voto)
con un primo script mi estraggo tutti gli studenti e li stampo con accanto la casella del voto:
Codice PHP:
 $query = "SELECT * FROM studenti ORDER by stu asc"; 
$result = mysql_query($query); 
//$numero = mysql_num_rows($result);
while ($row = mysql_fetch_array($result))
{
?>
<form action="studenti_salva_voti.php" method="post" name="form1" id="form1">

<table width="800" border="0" align="center"  cellpadding="0" cellspacing="0" bgcolor="#FF0000">
 <tr>
<td width="5%"> </td>
<td width="85%">
<input name="codice" type="text" value="<?php print $row['stu'] ; ?> " />
<input name="nome" type="text" value="<?php print $row['nome'] ; ?> " />
<input name="voto" type="text" />
</td>
</tr>
</table>
<?php ?>
<input name="submit" type="submit" value="submit" /></form>
quello che voglio fare è salvare tutti gli studenti (codice, nome e voto) nella tabella voti
grazie