恩,checkbox必须配合javascript来使用
<script language="javascript">
//表单提交
function submit_Click()
{
//判断是否选中
if(document.form1.XIANChk.checked)
document.form1.XIAN.value="1";
else
document.form1.XIAN.value='0';
document.form1.action=self.location.href;//提交到当前页
document.form1.submit();//提交表单
}
</script>
<form name="form1" method="post" target="_self">
<%
XIAN=trim(request.Form("XIAN"))
response.Write "<input name='XIANChk' type='checkbox' id='XIAN' value='1' checked/>
显示数据"
If XIAN=1 Then
response.Write "好"
Else
response.Write "坏"
End If
%>
<input type="button" name="submit" onclick="submit_Click();" value="提交" />
<input type="hidden" name="XIAN" value='1' />
</form>
[
本帖最后由 yms123 于 2011-5-16 17:22 编辑 ]