Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/10/2006, 06:46
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años, 9 meses
Puntos: 834
Fijate si esto es lo que buscás:
Página uno:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>pag1</title>
</
head>

<
body>
<
p><a href="dos.php?cual=uno">link1</a></p>
<
p><a href="dos.php?cual=dos">link2</a></p>
<
p><a href="dos.php?cual=tres">link3</a> </p>
</
body>
</
html
Página dos:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
title>pag2</title>
<
script>
function 
seleccionar(){
    
ele=(location.search).split('?cual=');
    
campo=document.getElementById('pepote');
        for(
i=0;i<campo.length;i++){
            if(
campo.options[i].value==ele[1]){
               
campo.options[i].selected=1;
               break;
            }
        }
}
</script>
</head>

<body onload="seleccionar()">
<form id="form1" name="form1" method="post" action="">
  <select name="select" id="pepote">
    <option value="uno">uno</option>
    <option value="dos">dos</option>
    <option value="tres">tres</option>
  </select>
</form>
</body>
</html> 

Última edición por Panino5001; 10/10/2006 a las 06:53