if yes or no checkbox php mysql

<label for="tag_1">YES</label>
<input type="checkbox" name="Items_Located_other" id="tag_1" value="yes"
    <?php if($Items_Located_other === 'YES') echo 'checked="checked"';?> />
 
<label for="tag_1">NO</label>
<input type="checkbox" name="Items_Located_other" id="tag_1" value="yes"
    <?php if($Items_Located_other === 'NO') echo 'checked="unchecked"';?> />
 

Comments