Code: Select all
<?php
$id = 0;
while($result=mysql_fetch_assoc($query))
{
?>
<tr class=text align=center>
<td><input type=checkbox name="chk[<?php echo $id?>]" value=<?php echo ($result["ID"])?>></td>
</tr>
<?php
$id++;
}
}
}
}
?>here is my javascript (that have error)
Code: Select all
function selectall()
{
for (i = 0; i <frmweekly.chk.length; i++)
frmweekly.chk[i].checked=true;
}regards