Im trying to populate the POST checkboxes this way
foreach ($chk as $key => $value) {
if (isset($_POST[$key])) $chk[$key][$_POST[$key]] = 'checked="checked"';
}
But for some reason is not populating them for the following checkboxes
<input type="checkbox" name="chk[]" value="A" />A
<input type="checkbox" name="chk[]" value="B" />B
<input type="checkbox" name="chk[]" value="C" />C
Any help will be appreciate it.