example: A mysql query returns result in form of an array, that the visitor sees as a table with a bunch of rows.
Each row has it's own, "would you like to delete this row?" checkbox.
How can I make it so that if visitor puts a checkmark in one or more of the checkboxes, hits the submit button, those rows get removed where he checked the checkbox???
The logistical problems I'm running into are too numerous to mention, but they involve things like this:
I'm figuring that for each row, the checkbox has to have it's own value. So, I'm doing this:
<input type='checkbox' name='$name_of_the_actual_product_mentioned_in_this_row'>
Then, I thought I'd try an isset function like:
if (isset($name_of_product_blah_blah)) {
don't echo this table row
}
...but the values are always checked, and this is a nightmare. I'm hoping this quandry has already been figured out by someone and is easy to implement! :-)