This is my checkbox
<?php echo "<input type='checkbox' name='pcu' ".fieldvalue('1').==1 ? 'checked' : '' " value='1' />" ?>
If fieldvalue is 1 the box should be checked.
How to echo "checked=checked" if fieldvalue value is 1 and don't checked if fieldvalue is 0.
Aucun commentaire:
Enregistrer un commentaire