Ver Mensaje Individual
  #7 (permalink)  
Antiguo 21/01/2010, 20:57
mhax
 
Fecha de Ingreso: agosto-2009
Ubicación: Cartagena, Colombia
Mensajes: 516
Antigüedad: 14 años, 8 meses
Puntos: 13
Respuesta: Valor de menu desplegable en cuandro de texto

Código PHP:
Ver original
  1. <html>
  2.  
  3. <head>
  4. <meta http-equiv="Content-Language" content="es-ve">
  5. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  6. <title>Pagina nueva 1</title>
  7. </head>
  8. <body>
  9.  
  10. <form method="POST" action="register.php">
  11.     <p><select size="1" name="vanio" onChange="document.getElementById('id_text').value = this.value;">
  12. <option selected value="1">2006</option>
  13. <option value="2">2007</option>
  14. <option value="3">2008</option>
  15. <option value="4">2009</option>
  16. <option value="5">2010</option>
  17. </select>&nbsp; <input type="text" name="quantity1" size="20"></p>
  18. <input type="text" id="id_text">
  19. </form>
  20.  
  21. </body>
  22.  
  23. </html>

Espero haber ayudado
__________________
Un camino de mil millas comienza por el primer paso. Lao Tse