Re: Ejecutar un php en una PopUp
| From: | Pablo E. Siciliano | Date: | Tue, 26 Nov 2002 13:12:25 +0000 |
| Subject: | Re: Ejecutar un php en una PopUp | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-29643@lists.php.net to get a copy of this message | ||
La idéa es que abras una ventana con un html vacío, y dispares un form que
tenga por target la ventana.
Sería algo así:
<form action="http://www.diosatotal.com/encuesta.php"
method=POST
target="ventana" name="formulario">
<input type="radio" name="flavor" value="subscribe" checked>
Subscribe
<input type="radio" name="flavor" value="unsubscribe">
Unsubscribe<br>
<input type="text" name="email" value="email "
size="8">
<input type="hidden" name="list" value="erama">
<input type="Button" value="Submit" onClick="Disparar();">
</form>
<script Language="Javascript">
function BuscarFormPorNombre(nombre)
{
var i;
for(i=0;i<document.forms.length;i++)
if(document.forms[i].name==nombre) return i;
return -1;
}
function Disparar()
{
window.open("nada.htm","ventana","width=400,height=400");
var item=BuscarFormPorNombre("formulario");
document.forms[item].submit();
}
</script>
----- Original Message -----
From: "Rama Gonzalo" <ramagonzalo@yahoo.com.ar>
To: <lista@phpes.com>
Sent: Monday, November 25, 2002 7:33 PM
Subject: [PHP-ES] Ejecutar un php en una PopUp
> Hola a todos, necesito saber si alguién me puede dar una mano?. Tengo un
> formulario y quiero que cuando se realice la consulta el resltado se
muestre
> en un PopUp lo trate de hacer con un javascript: se abre la ventana pero
con
> los datos si actualizar,es decir no se ejecuta el script.
>
>
> <form
>
> action="javascript:Abrir_ventana('http://www.diosatotal.com/encuesta.php)"
>
> method=POST>
> <input type="radio" name="flavor" value="subscribe"
> checked> Subscribe
> <input type="radio" name="flavor" value="unsubscribe">
> Unsubscribe<br>
> <input type="text" name="email" value="email "
> size="8">
> <input type="hidden" name="list" value="erama">
> <input type="submit" value="Submit">
> </form>
>
> saludos!
>
>
> Cobertura especial de la Copa Mundial de la FIFA Corea-Japón 2002, sólo en
Yahoo! Deportes:
> http://ar.sports.yahoo.com/fifaworldcup/
>
> ---------------------------------------------------------------------
> Archivo On-line: http://www.phpes.com/
> via news: news://news.phpes.com/
> Manual PHP en español: http://www.php.net/manual/es/
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
>