Ver Mensaje Individual
  #9 (permalink)  
Antiguo 04/10/2010, 09:46
Avatar de bLEx
bLEx
 
Fecha de Ingreso: mayo-2008
Ubicación: Villa Alemana, Chile
Mensajes: 181
Antigüedad: 15 años, 11 meses
Puntos: 5
Respuesta: Enviar y recoger valor de lista desplegable por get

Mmm... ahi me pillaste no te podria confirmar eso...

Una idea puede ser:
Tienes tu form:

Código HTML:
Ver original
  1. <input type="text" id="texto">
  2. <select id="lista">
  3.   <option value="valor1">Valor 1</option>
  4.   ...
  5.   <option value="valori">Valor i</option>
  6. <input type="button" value="Enviar" onClick="cargarFormulario()">

Y la funcion cargar formulario puede ser algo asi...

Código Javascript:
Ver original
  1. function cargarFormulario()
  2. {
  3.   var titulo = document.getElementById("texto").value;
  4.   var lista = document.getElementById("lista").options[document.getElementById("lista").selectedIndex].value;
  5.  
  6.   window.open("pagina.php?titulo"+titulo+"opt="+opt , "ventana1" , "width=120,height=300,scrollbars=NO")
  7.  
  8. }

Pegale una mirada a ese codigo... ahi me cuentas