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

列表多选取值问题,在线等!
列表
Response.write   ( " <select   name=Name   size=10   multiple> ");
网页一
while   (!rs1.Eof)
{
Response.write   ( " <option> ");
Response.Write   (rs1( "姓名 "));
Response.write   ( " </option> ");
rs1.movenext();
}
Response.write   ( " </select> ");

网页二取值
GCName   =   Request( "Name ");

多选以后只能取到第一个值,请问应该怎么修改?????


------解决方案--------------------
option没有 value
------解决方案--------------------
返回值 是以,分开的
如1,2,3,4.....你split就行了
------解决方案--------------------
列表
Response.write ( " <select name=Name size=10 multiple> ");
网页一
while (!rs1.Eof)
{
Response.write ( " <option value= " " " & rs1( "姓名 ") & " " "> ");
Response.Write (rs1( "姓名 "));
Response.write ( " </option> ");
rs1.movenext();
}
Response.write ( " </select> ");

网页二取值
GCName = Request.form( "Name ")
Response.write (GCName)
Response.End