Ok, I'm not finding this. I can populate checkboxes, run while loops, all sorts of lovely stuff.
Now, can someone please give me an example of determining the checkbox state (so I can enter the new state into field "active")? Active = 0, not active = 1, with checkbox names being "categories[]"
Here is what I've started:
if ($HTTP_POST_VARS[Submit]) { // Update the product
$sql="select active FROM categories";
$result=mysql_query ($sql);
while ($row = mysql_fetch_array($result)) {
// if (isset($categories)) {
if ($categories=="checked") {
$categories = 0;
echo "checked<BR>";
} else {
$categories = 1;
echo "not checked<BR>";
}
// }
}
}