我的表格长这样:
<form>
<input type"checkbox" name="checked[(unique_id)]">
<input type"checkbox" name="checked[(unique_id)]">
<input type"checkbox" name="checked[(unique_id)]">
<input type"checkbox" name="checked[(unique_id)]">
</form>
复选框的数量会随时变化,因此在使用PHP处理这些数据时,必须循环
_POST['checked']
数组。我的问题是,当复选框被选中和未选中时,我都想采取行动。但只有选中的复选框才会添加到_POST['checked']
数组中。