Hi, I have an input box that has a checkbox checked depending on the value that is there in the DB. So if the value of $local==1 the checkbox is going to be checked. I am having a problem updating this form. When I uncheck this box and submit the form, the value still remains as 1. What do I do have the correct value ( 0 when unchecked ) be passed when the form is submitted?
<td class=""><input type="checkbox" name="local" id="local" <?php if ($local == 1) echo 'checked'; ?> value="" ></td>
//This is the code I use when I submit the form.