There are several ways of doing this with javascript, but the easiest way I know of doing it without having to use javascript, is to do the following:
On the page that has the select menu (lets call this "choose.php") you would have something like:
echo "
<form action='jump.php'>
<select name='jump'>
<option selected>Select A Page:</option>
<option disabled></option>
<option value='1'>Page 1</option>
<option value='2'>Page 2</option>
<option value='3'>Page 3</option>
</form>";
Then you create a new file (lets call this jump.php) with the following:
<form name='selectjump' action='$_SERVER[PHP_SELF]' method='get'>
<input type='hidden' value='$jump'>
";
if (!isset($jump))
{
$jump = "0";
echo " ";
}
else if ($jump == "0")
{
$jump = "1";
echo "
<META HTTP-EQUIV=Refresh CONTENT='0; URL=page1.php'>
<div align='center'>
Loading page 1...<br>
If you are not directed to page 1 within 5 seconds,
please <a href='page1.php'>click here</a>.
";
}
else if ($jump == "1")
{
$jump = "2";
echo "<div align='center'>
<META HTTP-EQUIV=Refresh CONTENT='0; URL=page2.php'>
<div align='center'>
Loading page 2...<br>
If you are not directed to page 2 within 5 seconds,
please <a href='page2.php'>click here</a>.
";
}
else if ($jump == "2")
{
$jump = "3";
echo "<div align='center'>
<META HTTP-EQUIV=Refresh CONTENT='0; URL=page3.php'>
<div align='center'>
Loading page 3...<br>
If you are not directed to page 3 within 5 seconds,
please <a href='page3.php'>click here</a>.
";
}
echo "</form>";
You can then modify the above to suit your page names etc.
HTH
Jonathen