I have checkbox to display the months .Is good in the insert form But in the update form I want the months that have been checked in the insert form ,have checked in the update form
i used this code to dispaly check boc

HTML Code:
 <input type="checkbox" name="months[]" id="months" value="<?php echo $key; ?>" >
any help?