Checkboxes
I am having trouble saving data from checkboxes.
I have tried the following combinations. Neither works (Ie. They don’t save the updated value.
<input <?php if (!(strcmp(($rsDecision->getColumnVal("ebird_full_review")),1))) {echo "checked=\"checked\"";} ?> type="checkbox" name="ebird_full_review" value="1" id="ebird_full_review" />
$UpdateQuery->bindColumn("ebird_full_review", "c", "".((isset($_POST["Review"]))?$_POST["Review"]:"") ."", "WA_DEFAULT");
<input name="review" type="checkbox" id="review" value="<?php echo($rsDecision->getColumnVal("ebird_full_review")); ?>">
$UpdateQuery->bindColumn("ebird_full_review", "c", "".((isset($_POST["review"]))?$_POST["review"]:"") ."", "WA_DEFAULT");
I also tried "y" and "i".
What am I doing wrong?