<select onChange="location=options[selectedIndex].value;"> <option selected> Choose an Ep </option> <? $result = mysql_query("SELECT * FROM smallville_episode_guide ORDER BY id ASC",$db); $php_self = $_SERVER['PHP_SELF']; while ($myrow = mysql_fetch_array($result)) { printf("<option value=\"%s?action=episodeguide&episode=%s\">---%s - %s</option> \n", $php_self, $myrow['id'], $myrow['id'], $myrow['episode_name']); } ?></select>