ASP 获取Form中Checkbox的值
我在表单页面中有两个Chcekbox
<input name= "gametype " type= "checkbox " id= "gametype1 " value= "环保摄影大赛 " onclick= "judge(); " />
<input name= "gametype " type= "checkbox " id= "gametype2 " value= "环保海报设计大赛 " onclick= "judge(); " />
提交后,想在保存数据页面取得这两个Checkbox的值,并且判断是否选中
For i=1 To Request.Form( "gametype ").count
gametype=Request.Form( "gametype ")(i)
If Trim(gametype) = " " Then
response.write " <script language= 'javascript '> "
response.write "alert( '请选择报名项目! '); "
response.write "location.href= 'javascript:history.go(-1) '; "
response.write " </script> "
response.End
End If
Next
可是怎么也不能实现,哪位大侠帮我看看?小弟先谢了
------解决方案--------------------Request( "gametype ")
得到的是1,2,3的形式