<form name =testform action ="test6.asp" method =post >
<%
for i=1 to 5
%>
<input type=text name=<%=i%> value=<%=i%>><br>
<%
next
%>
<input type =submit name =submit value ="测试">
</form>
<form name =testform action ="test6.asp" method =post >
<%
for i=1 to 5
%>
<input type=text name=text<%=i%> value=<%=i%>><br>
<%
next
%>
<input type =submit name =submit value ="测试">
</form>
test6.asp这样写
<%
dim i=1
for i=1 to 5
response.write("text" & i & "=" & request.form("text" & i) & "<br>")
next
%>
<form name =testform action ="test6.asp" method =post >
<%
for i=1 to 5
%>
<input type=text name=a value=<%=i%>><br>
<%
next
%>
<input type =submit name =submit value ="测试">
</form>
=====
test6.asp
Dim tmpArray
tmpArray=Split(request.Form("a"), ", " )
For i=0 To UBound(tmpArray)
Response.write(tmpArray(i))
Next