表单名是二维数组变量,怎样才能用二维数组获得表单值
<formname="form1"method="post"action="2.asp"><tablewidth="95%"><%fora=0to2Response.Wr...
<form name="form1" method="post" action="2.asp">
<table width="95%">
<%
for a=0 to 2
Response.Write "<tr>"
for b=0 to 2
%>
<td width="33%" height="40"><input name="x(<%=a&","&b%>)" type="text" id="x(a,b)"></td>
<%
next
Response.Write "</tr>"
next
%>
<tr>
<td width="33%" height="40"> </td>
<td width="33%" height="40"><input type="submit" name="Submit" value="提交"></td>
<td width="33%" height="40"> </td>
</tr>
</table>
</form> 展开
<table width="95%">
<%
for a=0 to 2
Response.Write "<tr>"
for b=0 to 2
%>
<td width="33%" height="40"><input name="x(<%=a&","&b%>)" type="text" id="x(a,b)"></td>
<%
next
Response.Write "</tr>"
next
%>
<tr>
<td width="33%" height="40"> </td>
<td width="33%" height="40"><input type="submit" name="Submit" value="提交"></td>
<td width="33%" height="40"> </td>
</tr>
</table>
</form> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询