唐山路南二手房出售:asp中如何让复选框全不选时传值为0?

来源:百度文库 编辑:高校问答 时间:2024/05/06 04:43:47
如题,在多个复选框全部未被选中时,想向数据库传入0值,怎么实现?

使用JS检查多个复选框是否被选择中再传值:

if(document.Form.CheckBox.Checked) 选中

dim a as integer
if not (form1.checkbox.checked) then
a=0
end if
然后再把a insert into 到数据库中吧