日期:2014-05-17  浏览次数:21188 次

帮我解释下 下面的语句是什么意思,跪谢!
<%
for   i=1   to   request.Form( "checkboxname ").count  
checkvalue=checkvalue&request.Form( "checkboxname ")(i)& ", "
next
response.Write( "多选提交数据: "&checkvalue& " <br> ")
%>

------解决方案--------------------
比如
<input type= "text " value= "a " name= "tt ">
<input type= "text " value= "b " name= "tt ">
<input type= "text " value= "c " name= "tt ">
提交上去取得的tt值是 "a, b, c "
那么request.Form( "tt ").count则等于3
而request.Form( "tt ")(1)则等于a
request.Form( "tt ")(2)则等于b
------解决方案--------------------
<%
for i=1 to request.Form( "checkboxname ").count '循环,表单上checkboxname的个数
checkvalue=checkvalue&request.Form( "checkboxname ")(i)& ", " '连接值类似a=a&b,1=2,b=1,那么a= "21 "
next
response.Write( "多选提交数据: "&checkvalue& " <br> ") '打出信息
%>