<html>
<head>
<title>Thanks for reporting your scores</title>
</head>
<body>
<?php
for ($i=1; $i<=5; $i++) {
if ( isset($_POST["gamenum".$i]) )
{
$sql = "update games set ";
$sql = $sql."homescore = ".$_POST["homescore".$i];
$sql = $sql."visitorscore = ".$_POST["visitorscore".$i];
$sql = $sql."where gamenum = ".$_POST["gamenum".$i];
echo $sql."<br />".
}
}
?>
</body>
</html>
Can anyone tell me why the above code won't display anything at all even when I KNOW that there are post vars. I've even tried
changing to use a GET to make sure that the vars are correct and
they are.
All that is returned is
<html><body></body></html>