![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
02/07/2006, 09:10
|
| | Fecha de Ingreso: diciembre-2005 Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 19 años, 1 mes Puntos: 15 | |
Algo como esto.....
function EnviaForm(este)
{
if(var==1)
{
document.formularioEnvio.action=este;
document.formularioEnvio.submit();
}
else
{
alert("haz esto y aquello")
stop;
}
}
Y en el form tengo...
<form id="formularioEnvio" method="get">
<input name="E1" id="E1" type="hidden" value="0">
<input name="E2" id="E2" type="hidden" value="0">
<input name="E3" id="E3" type="hidden" value="0">
<input name="E4" id="E4" type="hidden" value="0">
<input type="image" src="Images/Puerta.gif" onclick = "EnviaForm('1.php')">
<input type="image" src="Images/Ventana.gif" onclick = "EnviaForm('2.php')">
</form> |