I used a bit of JavaScript the first time I needed this, I'm not sure if there is a way to do this with PHP.
Put this javascript function in the tags of your file.
<SCRIPT LANGUAGE=javascript>
<!--
function OnChange(dropdown){
//the item that has been selected
var myindex = dropdown.selectedIndex
//the value of the item that has been selected
var SelValue = dropdown.options[myindex].value
//the URL of the page as well as the $_GET variable used to store the value of the
//selected item
var baseURL = "/filename.php?selectBox="
//sends the browser to "/filename.php?selectBox=(whatever was selected)
top.location.href = baseURL +SelValue;
}
//-->
</SCRIPT>
----------------------------------------------------------
FOR THE SELECTION LIST:
<select name="selectBox" id="selectBox" onchange="OnChange(this.form.selectBox);">
Whatever the value of the item selected was it will be in the $_GET['selectBox'] variable. You should change the names to match whatever you're doing.
EXAMPLE:
<html>
<head>
<SCRIPT LANGUAGE=javascript>
<!--
function OnChange(dropdown){
var myindex = dropdown.selectedIndex
var SelValue = dropdown.options[myindex].value
var baseURL = "/phptest.php?selectBox="
top.location.href = baseURL +SelValue;
}
//-->
</SCRIPT>
</head>
<body>
<form name="test" action="phptest.php" method="post">
<select name="selectBox" id="selectBox" onchange="OnChange(this.form.selectBox);">
<option value="" selected> </option>
<option value=1>1</option>
<option value=2>2</option>
</select>
</form>
<?php
echo $_GET['selectBox'];
?>
</body>
</html>