ASP 数组赋值的问题不知道该怎么操作
我的语句是<%n=int(request("n"))i=1fori=1tonnames(i)=request("names"&i)fnum(i)=request("fnu...
我的语句是<%
n=int(request("n"))
i=1
for i=1 to n
names(i)=request("names"&i)
fnum(i)=request("fnum"&i)
bnum(i)=request("bnum"&i)
addtime(i)=request("addtime"&i)
i=i+1
next
i=1
for i=1 to n
response.Write names(i)
response.Write "<br>"
response.Write fnum(i)
response.Write "<br>"
response.Write bnum(i)
response.Write "<br>"
response.Write addtime(i)
i=i+1
next
%>谁能告诉我错在哪里啦?该如何写这个语句啊??? 展开
n=int(request("n"))
i=1
for i=1 to n
names(i)=request("names"&i)
fnum(i)=request("fnum"&i)
bnum(i)=request("bnum"&i)
addtime(i)=request("addtime"&i)
i=i+1
next
i=1
for i=1 to n
response.Write names(i)
response.Write "<br>"
response.Write fnum(i)
response.Write "<br>"
response.Write bnum(i)
response.Write "<br>"
response.Write addtime(i)
i=i+1
next
%>谁能告诉我错在哪里啦?该如何写这个语句啊??? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询