How to can I check a checkbox by default if some condition is met?
if ($php = "yes"){
// check.box is check
}
How to can I check a checkbox by default if some condition is met?
if ($php = "yes"){
// check.box is check
}
<?php
$checked = "";
if ($php == "yes"){
$checked = "checked";
}
?>
<input type="checkbox" <?php echo $checked;?>/>