概述
提交页
< input type ="checkbox" name ="test" value ="打球" >
< input type ="checkbox" name ="test" value ="打人" >
< input type ="checkbox" name ="test" value ="打飞机" >
< input type ="checkbox" name ="test" value ="打屁" >
< input type ="checkbox" name ="test" value ="打酱油" >
接受页
<
%
dim test
test = Split (request.from( " test " ), " , " )
' 取值的时候
Response.Write test( 0 )
Response.Write " <br /> "
Response.Write test( 1 )
Response.Write " <br /> "
Response.Write test( 2 )
' ……
Response.Write " <br /> "
' 循环取值/操作
For I = 0 To UBound (test)
Response.Write test(I)
Response.Write " <br /> "
Next
% >
dim test
test = Split (request.from( " test " ), " , " )
' 取值的时候
Response.Write test( 0 )
Response.Write " <br /> "
Response.Write test( 1 )
Response.Write " <br /> "
Response.Write test( 2 )
' ……
Response.Write " <br /> "
' 循环取值/操作
For I = 0 To UBound (test)
Response.Write test(I)
Response.Write " <br /> "
Next
% >
最后
以上就是丰富枕头为你收集整理的ASP获取复选框(多项选择)的值的全部内容,希望文章能够帮你解决ASP获取复选框(多项选择)的值所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复