Standard behavior for browsers is to only sent a value if the checkbox is checked (as per HTML 4 recommendation). When (on submit) none of the "delete[]" checkboxes is checked, PHP fails with an 'Undefined index: delete' error. Fix by adding a check if it is set.
Standard behavior for browsers is to only sent a value if the checkbox is checked (as per HTML 4 recommendation). When (on submit) none of the "delete[]" checkboxes is checked, PHP fails with an 'Undefined index: delete' error. Fix by adding a check if it is set.