Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/06/2015, 12:29
Avatar de emilio_viguri
emilio_viguri
 
Fecha de Ingreso: junio-2011
Ubicación: Mexico
Mensajes: 117
Antigüedad: 12 años, 11 meses
Puntos: 3
Pregunta Varios datos por GET para un iFrame

Hola me ayudarían con esto requiero pasar varios datos de un formulario por get pero no logro nada...

Lo que quiero es que cuando escribas en las cajas de texto calle, colonia, etc esto lo que deveria hacer el mandar los valores por GET de lo que puse en las cajas

crerme una url algo asi

ver.php?calle=AAAA&colonia=BBB&ciudad=CCCC para que la muestre el iframe

pero no se como hacer esto que al momento de escrivir se este llenado esa URL

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. </head>
  5.  
  6. <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
  7.   Calle
  8.     <input name="calle" type="text" id="calle" onchange="document.getElementById('iFrame').src='borrar.php' return false" size="32" />
  9.   Colonia
  10.   <input type="text" name="colonia" value="" size="32" onchange="document.getElementById('iFrame').src='borrar.php' return false"  />
  11.   Municipio
  12.   <input type="text" name="municipio" value="" size="32" onchange="document.getElementById('iFrame').src='borrar.php' return false"  />
  13.   Ciudad
  14.   <input type="text" name="ciudad" value="" size="32"  onchange="document.getElementById('iFrame').src='borrar.php' return false"  />
  15.   Cp
  16.   <input name="cp" type="text" value="" size="6" maxlength="6" onchange="document.getElementById('iFrame').src='borrar.php' return false"  />
  17.   <input type="submit" value="Insertar registro" />
  18. </form>
  19. <br />
  20. Iframe
  21. <iframe align="bottom" scrolling="auto" src="about:blank" frameborder="0" width="95%" height="250" id="iFrame">&nbsp;</iframe>
  22. </body>
  23. </html>