form send auto when value is checked code example Example: checkbox onchange submit form checkbox_state == 1) { echo 'checked' }; ?>>