Hola Camilo...
Hazlo de esta forma vale.....
Código:
<html>
<head>
<title>Pruebas</title>
<SCRIPT LANGUAGE="JavaScript">
function salta(Sel){
if (Sel.leng.selectedIndex != 0){
document.location=Sel.leng.options[Sel.leng.selectedIndex].value
}}
</SCRIPT>
</head>
<body>
<table border="0">
<form name="form">
<tr>
<td><font color="red" size=+2" face="Arial, ">Elige tu Idioma: </font></td>
</tr>
<tr>
<td>
<select name="leng" OnChange="salta(this.form)">
<option value="./spanish.php">Spanish</option>
<option value="./english.php">English</option>
</select>
</td>
</tr>
</form>
</table>
</body>
</html>
Creo que de esta forma te queda bien..
Intenta tambien de esta forma vale...
Código:
<?php
/*
Espero te funcione de esta foma o si no
cojes el codigo del else y lo pones en otra pagina
y le haces el llamado ok
*/
if(!$_POST['submit']){
echo "<form action=\"po1.php\">\n";
echo "<select name=\"leng\">\n";
echo "<option value=\"es\">Spanish</option>\n";
echo "<option value=\"en\">English</option>\n";
echo "</form></select>\n";
echo "<input type=\"submit\" value=\"ok\">\n";
}else {
switch ($leng){
case "es" :
header("location: index_es.php");
break;
case "en" :
header("location: index_en.php");
break;
}
}
Salu2...