将代码改成<form action=a.php method=get>
<input type="checkbox" name="fruit[]" value ="apple">苹果 <br>
<input type="checkbox" name="fruit[]" value ="orange">桔子 <br>
<input type="checkbox" name="fruit[]" value ="mango">芒果 <br>
<input type=submit border=0 value="提交">
</form>
这样你在a.php里获得的$_GET['fruit']是个数组,循环调用就行了。
<input type="checkbox" name="fruit[]" value ="apple">苹果 <br>
<input type="checkbox" name="fruit[]" value ="orange">桔子 <br>
<input type="checkbox" name="fruit[]" value ="mango">芒果 <br>
<input type=submit border=0 value="提交">
</form>
这样你在a.php里获得的$_GET['fruit']是个数组,循环调用就行了。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货