Ver Mensaje Individual
  #6 (permalink)  
Antiguo 20/06/2009, 09:31
Avatar de spider_boy
spider_boy
 
Fecha de Ingreso: diciembre-2003
Ubicación: Chile
Mensajes: 1.855
Antigüedad: 20 años, 4 meses
Puntos: 89
Respuesta: Se puede procesar un form en 2 actions ?

Probé esto en FF 3.0.11 e IE8, y me funcionó:

Código HTML:
<script>
function actionForm(formid, act)
{
    document.getElementById(formid).action=act;
    document.getElementById(formid).submit();
}
</script>

<form id="form1" method="post">

<input type="button" value="Send!" onClick="actionForm(this.form.id, 'pag.php'); return false;" />
<input type="button" value="Send2!" onClick="actionForm(this.form.id, 'pag2.php'); return false;" />

</form> 
Nos vemos.
__________________
Nunca te olvidaré mi negra hermosa. Te extraño demasiado.