Hi All - I am trying to find a solution to the following
I am trying to update a form with checkboxes and to compare the value of the data variable $active from the db and if the value =1 then make the checked value as checked if = to 1 otherwise leave unchecked state.
The unchecked value is zero
Thanks in advance
D
<input type="checkedbox" class="active" name = "active" id="active" value="1" <?php if ($active) == '1'; {"checked = checked";} ?>>