关于表单的提交问题
UPC子夜 2010-01-04 02:50:23 <form id="form" action="MainHomePage.jsp" method="post" onsubmit="return doCheckSubmit(this);">
<table style="width:500;height:300;background-color:#B0E4F8;">
<tr>
<td>
<button id="LoadBtn" type="submit" onclick="LoadBtn_onclick()" style="width:100;height:30;">登录</button>
</td>
</tr>
</table>
</form>
点击登录后,如果用户名正确才让他提交,进入主页面,用户名不正确则不提交,怎么控制啊?
我现在随便输入一个用户名,在LoadBtn_onclick()里边返回false了,结果还是提交到主页面里了。
谁知道怎么回事啊?谢谢了。