Solo una domanda sull'id:
Questo è un form che sto preparando...
codice:
<?php
if (isset($war)){
include("dati.txt");
$link=mysql_connect("$db_host","$db_login","$db_pass")
or die ("Non riesco a connettermi a [b]$db_host");
mysql_select_db ($database, $link)
or die ("Non riesco a selezionare il db $database
");
$query = "UPDATE tuatabella
SET result1='$result1', result2='$result2' WHERE id='$id'";
if (mysql_query($query, $link))
echo "Risultato inserito!";
else
echo "Erorre durante l'inserimento";
mysql_close ($link);
echo "<meta http-equiv=refresh content=3;url=$PATH_INFO>";
}
?>
<html>
<head>
<meta name=Proprietà content=War System>
<meta name=ProgId content=AAO Federation>
<title>WarSystem</title>
</head>
<body>
<TABLE border=0 width=100% cellpadding=3>
<tr>
<td width=100% colspan=2>
<p align=center>Girone A - Giornata 1 - Mappa Swamp_Raid
<form method=POST action="<? $PATH_INFO ?>" ?>>
</td>
</tr>
<tr>
<td width=18%>[9thFolgore]</td>
<td width=82%><input type=text name=result1 size=20></td>
</tr>
<tr>
<td width=18%>[ICE]</td>
<td width=82%><input type=text name=result2 size=20></td>
</tr>
<tr>
<td width=18%><input type=submit
value=Inserisci nuovi dati></td>
<td width=82%></form></td>
</tr>
</table>
</body>
</html>
Salvo la pagina poi come form.php mi dici solo dove devo mettere l'id nel form?