Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/06/2012, 17:13
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Mostrar resultado de php en popup

Este es el método para pasar los resultados de un form a un pop up

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <form action="pop.php" method="post" target="pop" onsubmit="window.open('','pop','width=300,height=300');">
  8. <input type="text" name="nombre" />
  9. <input type="submit" />
  10. </form>
  11. </body>
  12. </html>

Basicamente definir un target para el form, y darle ese mismo valor a la ventana que se abre en el window.open(), que está con el evento onsubmit

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.