Bonesnap;10998078 wrote:I would change:
<?php if(isset($_POST['tape'])) echo "checked"; ?>
to:
<?php if(isset($_POST['submit'])) echo 'checked="checked"'; ?>
Where $_POST['submit'] is the name of the submit button for your form.
That would still cause all of the checkboxes to be checked, rather than just the ones that were previously checked.
@: The answer is probably going to be coupled with the discussion in your other thread, since you'll want to change how those checkboxes are POST'ed to your PHP script (namely, adding the '[]' onto the end of the name values).
For example, assuming you do take my suggestion from your other thread, $_POST['tape'] will then become an array, and you would want to AND a second condition into those if() statements that checks to see if a given checkbox's value is contained somewhere in that array. To do that, you could use [man]in_array/man.
(As a side note, what is the purpose of the commas in the value attributes of all of the checkboxes?)