Se ho intuito bene...
codice:
echo "<select name=\"pages\" action=\"index.php\" onclick=\"this.form.submit()\">";