Tema: Formularios
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/03/2002, 14:53
lins
 
Fecha de Ingreso: enero-2002
Mensajes: 45
Antigüedad: 22 años, 4 meses
Puntos: 0
Formularios

La duda es: como puedo enviar variables de 2 formularios distintos de una pagina en html a la misma en php.

El ejemplo seria(no me interesa tener un unico formulario mas grande).
Quiero que llegue al AltaUser.php4 las variables de los 2, aunque solo el segundo tiene el boton.

Pagina HTML:

<form name="form1" method="get" action="AltaUser.php4">
Nom <input type="text" name="Nom" size="15"><BR><BR>
Primer Cognom <input type="text" name="Cog1" size="15"><BR><BR>
Segon Cognom <input type="text" name="Cog2" size="15"><BR><BR>
Username <input type="text" name="User" size="15"><BR><BR>
Direcció de correu <input type="text" name="Mail" size="30"><BR><BR>
Telefon 1 <input type="text" name="Tel1" size="15"><BR><BR>
Telefon 2 <input type="text" name="Tel2" size="15"><BR><BR>
Extra<BR><BR>
<textarea cols="50" rows="4" name="Extra" ></textarea><BR>
</form>


</form>
<form name="form2" method="get" action="AltaUser.php4">
Nom2 <input type="text" name="Nom2" size="15"><BR><BR>
<INPUT TYPE = "SUBMIT" name="enviar" VALUE = " ACCEPTAR ">
<INPUT TYPE = "RESET" VALUE = " CANCELAR ">
</form>

Ahora mismo el Nom2(del 2ºformulario) llega, pero las variables del primero no.

GRACIAS