asp提交问题,很简单,就是不明白

来源:百度知道 编辑:UC知道 时间:2024/06/24 06:20:16
我个提交我怎么也做不好!我刚刚开始做ASP不知道怎么弄滴!
<td height="35" colspan="2" align="center"><img src="images/tj.gif" onclick="document.form1.submit();" width="49" height="24" style="cursor:hand" /> 
<img src="images/cz.gif" width="49" height="24" onclick="document.form1.reset();" style="cursor:hand" /></td></tr>
这是那个提交图片代码
下面是SUBMIT的
<td height="30" valign="top"><form action="?action=add" method="post" name="form1" id="form1" onsubmit="return check();">
为什么它不执行check
能不能给个答案啊!!

onsubmit="return check();
这个所在的<td>好像是存放控件的表格!
也就是这种模式:
function check()
{
.......
}

<body>
<table>
<tr>
<td height="30" valign="top"><form action="?action=add" method="post" name="form1" id="form1" onsubmit="return check();">
<input type=.../>
<input type=.../>
<input type=.../>
</td>
</tr>
</table>