Hello all. I have an HTML page that displays a list of comments left on a site. The administrator needs to go in and put checks next to the comments he wants to delete, and click submit.
echo "<td width=\"75\" align=\"center\"><input type=\"checkbox\" name=\"toApprove[]\" id=\"approve\" value=\"approve\" />";
echo "<td width=\"75\" align=\"center\"><input type=\"checkbox\" name=\"toDelete[]\" id=\"delete\" value=\"delete\" />";
echo "<input type=\"submit\" name=\"approve\" value=\"Approve\" /></td>";
echo "<td><input type=\"submit\" name=\"delete\" value=\"Delete\" /></td></form></tr>";
The submit goes to a php page with the code that should do the deleting. But that's where I am stuck.
I cannot seem to get the data on the state of the checkbox to go to the php page.
It should work out that the admin can, for example, put a check on messages 1 and 3, hit submit, and they are deleted for the file. Leaving only messages 1 and 4.
I really appreciate and help I can get. Thanks in advance.