如何通过jsp表单提交数组?
此jsp表单提交数组页面如果用php表示???<body>
<form name="form1" method="post" action="">
<p>
<input type="checkbox" name="aaa" value="a1">
a1
<input type="checkbox" name="aaa" value="a2">
a2
<input type="checkbox" name="aaa" value="a3">
a3
<input type="submit" name="Submit" value="Submit">
</form>
<hr>
<%
String[] aaa=request.getParameterValues("aaa");
for(int i=0;i<aaa.length;i++){
out.print(aaa[i]+"<br>");
}
%>
本文地址:http://www.45fan.com/a/question/68392.html