i have a page with 2 forms, the first one inserts a fixture, the second deletes a fixture. the first form works perfectly, but the second gives a javascript error "object doesn't support this property or method". the codes will be the following:
<html>
<head>
<? require("./title.sb"); ?>
<link rel="stylesheet" href="./style.css" type="text/css">
<?
$db = "socbot";
$link = mysql_connect("localhost");
mysql_select_db($db, $link);
?>
</head>
<body>
<? require("./header.sb"); ?>
<div align="center"><h1>Insert Fixture</h1><br>
<form name="insertfix" method="post" action="insertfixres.php">
<input type="text" size="20" name="teama"> vs
<input type="text" size="20" name="teamb">
<br><br>Handicap: <? require("./selecthdc.sb"); ?>
<br><br><input type="submit" class="fixtures" value="Insert Fixture">
<input type="reset" class="fixtures" value="Reset">
</form></div><br><br>
<?
$fixtures = mysql_query("select matchid, teama, teamb, handicap from fixture");
echo "<table width='100%' cellspacing='0' border='1'>";
echo "<tr align='center' bgcolor='green'>";
echo "<td class='title'>Team A</td><td class='title'>Handicap</td><td class='title'>Team B</td><td class='title'>Action</td>";
echo "</tr>";
while ($row = mysql_fetch_array($fixtures)) {
$matchid = $row['matchid'];
echo "<form name='deleteFix' method='post' action='./deletefixres.php'>";
echo "<input type='hidden' name='matchid' value='".$matchid."'>";
echo "</form>";
echo "<tr align='center'>";
echo "<td>".$row['teama']."</td>";
echo "<td>".$row['handicap']."</td>";
echo "<td>".$row['teamb']."</td>";
echo "<td><a href='#' onClick='document.deleteFix.submit();'>[delete]</a></td>";
echo "</tr>";
}
echo "</table>";
?>
</body>
</html>
anyone know the cause of it? thanks a lot