Home >Backend Development >PHP Tutorial > echo 出的input 不能调用onclick事件 求好手
echo 出的input 不能调用onclick事件 求高手
<script><br />
function CheckAll(form) {<br />
for (var i=0;i<form.elements.length;i++) {<br />
var e = form.elements[i];<br />
if (e.name != 'chkall') e.checked = form.chkall.checked; <br />
}<br />
}<br />
<br />
</script>
require_once 'SqlHelper.class.php';
$SqlHelper=new SqlHelper();
$sql="select * from user1";
$res=$SqlHelper->execute_dql($sql);
$fields=mysql_num_fields($res);
$rows=mysql_num_rows($res);
echo "
"; | $fieldname | ";
---|---|
"; | $row[$i] | ";