如下:
c1=request("txt_name")
response.write c1
c2=split(c1,",")
for i=0 to Ubound(c2)
response.write c2(i)
next
看看是什么就知道了
c1=request("txt_name")
response.write c1
c2=split(c1,",")
for i=0 to Ubound(c2)
response.write c2(i)
next
看看是什么就知道了
c2=split(c1,", ")提交后多个值间是用,和一个空格(即, )连接的
response.write request.form("txt_name")(i) & "<br>"
next
所以用while(!collection.atEnd())来循环取得。
在VBScript中,直接用for each ...in ...语句就行了!