checkbox onchange submit form code example Example 1: submit form when checkbox is checked onChange="this.form.submit()" Example 2: checkbox onchange submit form checkbox_state == 1) { echo 'checked' }; ?>>