日期:2014-05-16 浏览次数:20457 次
<?php
if (isset($_POST['submit']))
{
print_r($_POST['select']);
}
?>
<form action='' method=post>
<input name="select[]" type="checkbox" value="goods_id_1" />
<input name="select[]" type="checkbox" value="goods_id_2" />
<input name="select[]" type="checkbox" value="goods_id_3" />
<input name="select[]" type="checkbox" value="goods_id_4" />
<input type=submit name=submit>
</form>