onchange submit form code example
Example 1: select form submit onchange
<select onchange="this.form.submit()">
...
</select>
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>