Whether checked or unchecked. What I have so far is like this:

in the php site where user inputs I have this <input type="checkbox" name="check" id="check" >
and the php to post the state which is like the confirmation page I have this <input type="checkbox" <?php echo (isset($_GET['check']) ? 'checked' : '');?> disabled> . So I want to be able to do what I did with the confirmation page, but with a database, to be able to store the state in the data base.