老是提示下标越界··· 怎么改啊??
<%dimksession("spid")=session("spid")&request.QueryString("gid")&":"session("num")=se...
<%dim k
session("spid")=session("spid")&request.QueryString("gid")&":"
session("num")=session("num")&"1"
array1=split(Session("spid"),":")
array2=split(Session("num"),":")
k=0
%>
<table border="2">
<tr><th>商品</th><th>数量</th><th>取消</th></tr>
<%do while k<(ubound(array1)-1)%>
<tr>
<td width="100"><p align="center" ><% =array1(k)%></p></td>
<td width="70"><p><input type="text" name="t1" size="10" value="<% =array2(k)%>" ></p></td>
<td width="20"><p><input type="checkbox" name="ifcancel" value=<% =k%> ></p></td>
</tr>
<%
k=k+1
loop
%> 展开
session("spid")=session("spid")&request.QueryString("gid")&":"
session("num")=session("num")&"1"
array1=split(Session("spid"),":")
array2=split(Session("num"),":")
k=0
%>
<table border="2">
<tr><th>商品</th><th>数量</th><th>取消</th></tr>
<%do while k<(ubound(array1)-1)%>
<tr>
<td width="100"><p align="center" ><% =array1(k)%></p></td>
<td width="70"><p><input type="text" name="t1" size="10" value="<% =array2(k)%>" ></p></td>
<td width="20"><p><input type="checkbox" name="ifcancel" value=<% =k%> ></p></td>
</tr>
<%
k=k+1
loop
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询