auto submit form

1
2
3
4
5
6
7
8
<form action="cmd.php" method="post">
<input type="hidden" name="mod" value="{$mod}">
<input type="hidden" name="order_id" value="{$i.id}">
<input type="hidden" name="do" value="edit_status">
<select name="status_id" onchange='this.form.submit()'>
{html_options options=$form.status_tree selected=$i.status_id}
</select>
</form>