日期:2014-05-17  浏览次数:20421 次

PHP中获取CHECKBOX提交的内容及checkbox全选
提交页?
//js控制全选/取消全选?
<script type="text/javascript">?
function check_all(obj,cName)?
{?
????var checkboxs = document.getElementsByName(cName);?
????for(var i=0;i<checkboxs.length;i++){checkboxs[i].checked = obj.checked;}?
}?
</script>?
??
??
<form id="form1" name="form1" method="post" action="receive.php">?
<table width="100%"><tr>?
???????<td></td>?
???????<td colspan="2">?
<div align="center">?
<p><input type="checkbox" name="all" onclick=<