[求助]为什么实现不了递交表单的验证呢?
<html>
<head>
<title>请输入用户名和密码</title>
</head>
<body>
<script language="vbscript">
function ChkFields()
If document.MyForm.UserName.value="" then
window.alert("请输入用户名!")
return.false
End if
If document.MyForm.Pwd.value="" then
window.alert("请输入密码!")
return.false
End if
return ture
End function
</script>
<p align="center"><font color="#000000" size="+5">身 份 验 证</font></p>
<p align="center"><font color="#000000">
<%=Errmsg%>
</font></p>
<form method="post" action="#" name="Myform" onsubmint="return ChkFields()">
<table width="361" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="92"><font size="-1">用户名:</font></td>
<td width="269"><font size="+1">
<input name="UserName" type="text" size="12">
</font></td>
</tr>
<tr>
<td><font size="-1">密码:</font></td>
<td><font size="+1">
<input name="Pwd" type="password" size="12">
</font></td>
</tr>
</table>
<table width="364" height="24" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="364" height="24"><div align="center">
<input type="submit" name="return ChkFields()" value="提交">
<input type="submit" name="return ChkFields()" value="提交">
</div></td>
</tr>
</table>
<p align="center"> </p>
</form>
</body>
</html>
谢谢!!