快来啊我在php中发现的一个问题
来得查理 2008-04-07 04:41:35 是这样的,我在A页面做一个表单里面放了多个checkbox,name都是checkbox
当我要提交到B页面显示出来的时候却只显示了一个checkbox 里的值
<form id="form1" name="form1" method="get" action="cc.php">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><label>
<input type="checkbox" name="checkbox" id="checkbox" value="0" />
<input name="checkbox" type="checkbox" id="checkbox" value="1" />
<input name="checkbox" type="checkbox" id="checkbox" value="2" />
<input name="checkbox" type="checkbox" id="checkbox" value="3" />
<input name="checkbox" type="checkbox" id="checkbox" value="4" />
<input name="checkbox" type="checkbox" id="checkbox" value="5" />
<input name="checkbox" type="checkbox" id="checkbox" value="6" />
<input name="checkbox" type="checkbox" id="checkbox" value="8" />
<input name="checkbox" type="checkbox" id="checkbox" value="7" />
</label></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><label>
<input type="submit" name="Submit" value="提交" />
</label></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
<?php
$aa = $_POST['checkbox'];
echo $aa;
?>
这是怎么回事,和ASP不一样啊!
有什么办法可以把所有的值都取到啊!!!!!