while($row = mysql_fetch_array($query))
{
echo "<input type=checkbox name=myCheckbox[] value=$row[id]><br>";
}
I want to include a select all and a deselect all link at the end of the form, but the typical javascript online only works for when the name=myCheckbox and not name=myCheckbox[]. I need to have the brackets because I handle $_POST['myCheckbox'] as an array. How would I go about doing this?
Thanks a lot. I appreciate any input you can provide me.