This is possible.
Load value from the Db and save it in variable $state .
then in your page:
<form id="form1" name="form1" method="post" action="">
<label>
<input name="checkbox" type="checkbox" value="checkbox" <?php if ($state==true){echo ' checked="checked" ';} ?> />
label</label>
<br />
<input type="submit" name="Submit" value="Submit" />
</form>
then create a script in a second php page to update DB with value of the checkbox when "submit" button is clicked