PHP獲取checkbox值
2015.09.10 | 697閱讀 | 0條評論 | php
<input id="weeks" type="checkbox" name="weeks[]" value="1" />
<input id="weeks" type="checkbox" name="weeks[]" value="2" />
<input id="weeks" type="checkbox" name="weeks[]" value="3" />
獲取值
$arr = implode(",",$_POST['weeks']); print_r($arr);
發(fā)表評論