I would like to check a checkbox if I have integer 1 stored in row a or b.
For now I created a working version to check for row 'a'. How can I check also for row 'b'? So as said above if row a or/and b has integer 1 stored check the checkbox.
<input type="checkbox" name="a" id="a" value="1" <?php if($row['a'] == "1") { echo "checked"; }?>>
Aucun commentaire:
Enregistrer un commentaire