无知的困惑
<html><head><title></title>
<script language="vbscript">
<!--
sub checkvl()
dim e
e=bb.e.value
if e=""then
msgbox"........",0+48
focusto(0)
exit sub
else
document.bb.submit()
end if
end sub
sub focusto(x)
document.bb.elements(x).focusto()
end sub
-->
</script>
</head>
<body>
<form method="post" action="a.asp"name="bb">
<input name="e" type="checkbox"value="c">c
<input name="e" type="checkbox"value=d">d
<input name="e" type="checkbox"value="f">f
<input type="button" name="but1"value="提交" onclick="checkvl()">
<input type="reset"name="but2"value="取消">
</body>
</html>
小弟初来驾到,才学ASP,上面有个表单,想在点击提交按扭时对表单的内容进行验证,对复选框的验证,在多个选项中必须最少选择一个,必须对复选框进行选择。小弟先在这谢谢大家!~~