submit form on checkbox click code example Example: checkbox onchange submit form checkbox_state == 1) { echo 'checked' }; ?>>