I have a php var ($testx) set to 0.
Html code looks like this:
<input type='checkbox' name='test_cb' id='test_cb' checked=<?= $testx == true ? 'checked' : '0' ?>></input>
The checkbox is always checked even though the php var being checked is false. I must be missing something obvious.
Aucun commentaire:
Enregistrer un commentaire