onChange="this.form.submit()"
<form method='post' action='#'> <input type='checkbox' name='checkbox' onChange='submit();' <?php if($page->checkbox_state == 1) { echo 'checked' }; ?>> </form>