读书人

REQUEST有关问题

发布时间: 2012-02-21 16:26:23 作者: rapoo

REQUEST问题
<form name= "aa ">
<input type= "checkbox " name= "sdfadsfa " value=1>
<input type= "checkbox " name= "sdfadsfa " value=2>
<input type= "checkbox " name= "sdfadsfa " value=3>
<input type= "checkbox " name= "sdfadsfa " value=4>
<input type= "checkbox " name= "aaaaa " value=1>
<input type= "checkbox " name= "aaaaa " value=2>
<input type= "checkbox " name= "aaaaa " value=3>
<input type= "checkbox " name= "aaaaa " value=4>
<input type= "checkbox " name= "bbbbb " value=1>
<input type= "checkbox " name= "bbbbb " value=2>
<input type= "checkbox " name= "bbbbb " value=3>
<input type= "checkbox " name= "bbbbb " value=4>
</form>
checkbox的名字是读表的,提交之后怎么才可以取到选择的checkbox名字呢?最好是用ASP编程

[解决办法]
那你用hidden保存一下名字算了...这样简单点儿...
[解决办法]
你为什么要用表名来做表单的名字呢 建立一个数组来保存嘛 或者设置value 为表名+数字
[解决办法]
request1 = request( "sdfadsfa ")
if request1= "1 " then
…… ……
elseif request1= "2 " then
…… ……
elseif request1= "3 " then
…… ……
elseif request1= "4 " then
…… ……
end if

request2 = request( "aaaaa ")
if request2= "1 " then
…… ……
elseif request2= "2 " then
…… ……
elseif request2= "3 " then
…… ……
elseif request2= "4 " then
…… ……
end if


request3 = request( "bbbbb ")
if request3= "1 " then
…… ……
elseif request3= "2 " then
…… ……
elseif request3= "3 " then
…… ……
elseif request3= "4 " then
…… ……
end if

读书人网 >ASP

热点推荐