I am building a webapp for a development project using mysql and php. I am currently trying to build an editing page. I'm running into a problem pulling checkboxes. I have two sets of them that are used on data entry and I need to pull that info into an editing page. Every thing I have tried either makes them always unchecked or always checked.
Code:
<br><input type="checkbox" name="earslot" checked="<? echo $row['earslot']; ?>" /><br>
That is currently always checked. The value used in the data entry segment = 1 when checked.