How to check the checkbox when condition satisfies?
<input name="pt_id[]" id="pt_id" type="checkbox" value="<?php echo the_ID(); ?>" <?php if(isset($_POST["pt_id"])) { echo 'checked="checked"'; } ?>/> <?php echo the_title(); ?>
Please help me. Give me solution or suggestion for this?