javascript checkbox onchange submit form code example
Example 1: submit form when checkbox is checked
<input onChange="this.form.submit()" ... />
Example 2: checkbox onchange submit form
<form method='post' action='#'>
<input type='checkbox' name='checkbox' onChange='submit();'
<?php if($page->checkbox_state == 1) { echo 'checked' }; ?>>
</form>