I have a form that consists of some checkboxes and one submit button. Each checkbox has a unique number for it's name and for it's value.
So for exemple,
<input type="checkbox" name="1" value="44444">
<input type="checkbox" name="2" value="22222">
and so on...
The number of checkboxes in the form will vary depending on the number of records returned by a database (a checkbox is given at the end of each record for the user to check signifying "delete this record" and they may or may not check them all).
So, I need to pass each checkbox value to another php script that will actually do the record deleting based on the value of each checkbox. I need to get the value of each checkbox as the "key" in some array. Then I will need to loop through each value until all the records are deleted. How can I do this? How do I do the $_Post part?
I want to code the record delete like this:
$query="DELETE FROM info WHERE account='$checkbox_value' ";
I'll need to keep running this query until all the values that where passed are used.
Does my problem make sense?? Any suggestions?
Thanks so much! I need help big time!!🙁