When i click submit or reset button, it dont work.Actually, i want it to be like this.When click submit button,it will go to insertstok.php.Can someone help me to solve this problem.May be some codes are missing or i wrote it wrong.
Here is the source code
<? $stok=$_POST['stok'];
?>
<html>
<head>
<title>Terminal Computer Services :: STOK</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script type="text/javascript">
function CalcPercnt(val, f) {
//val: Percentage Field value
//f: form which percent1 is in
if (!val == ""){
f.hargajualan.value = (f.hargaseunit.value * (val / 100 + 1)).toFixed(2)
}
}
</script>
<body>
<td width="77%" valign="top"><table width="753" height="33" cellpadding="0">
<tr>
<td width="747" height="30">
<p><a href="paparstok.php"<br><b></b><strong>
<br><br><b><p align="center"></p><h1>STOK</h1><b><br><br><br><br>
</p></a>
</p>
</td>
</tr>
</table>
<td width="99%" valign="top"><form action="insertstok.php" form name="Imp" method="post">
<table width="87%" height="292" border="0" align="center" bgcolor="#000000">
<tr>
<td width="41%"><font color="#FFFFFF"><h3>Nama Produk :</h3></font></td>
<td width="29%"> <input name="namaproduk" type="text" size="25"></td>
</tr>
<tr>
<td width="29%"><font color="#FFFFFF"><h3>Harga seunit:</h3><td width="71%"><input name="hargaseunit" type="text" size="25"></td>
</tr>
<tr>
<td width="29%"><font color="#FFFFFF"><h3>Peratus Keuntungan:</h3></td><td><select name="peratuskeuntungan" onBlur="CalcPercnt(this.value, this.form)" id="peratus">
<option>5</option>
<option>10</option>
<option>15</option>
<option>20</option>
<option>25</option>
<option>30</option>
</select></td>
</tr>
<tr>
<td width="41%"><font color="#FFFFFF"><h3>Harga Jualan:</h3><td width="30%"><input name="hargajualan" type="text" size="25"></td>
</tr></form>
<tr><td width="29%"><font color="#FFFFFF">
<h3>Bil Stok :</h3></font></td>
<td width="71%"><input name="bilstok" type="text" size="25"></td>
</tr>
<td><font color="#FFFFFF"><h3>Tarikh <em>(dd/mm/yy)</em>:</h3></font></td><td>
<input name="tarikh" type="text" size="25"></td>
</tr>
<tr><td height="105"> </td>
<td><input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
<br><br>
<a href="login.php"><strong><font face="Verdana, Arial, Helvetica, sans-serif"><font color ="black"></font></font>
<h2><p align="center">LOGOUT</h2></strong></a></p>
</form></td>
</tr>
</table>
</body>
</html>