Jump to content

help: two form submit prob


delickate

Recommended Posts

hi i've prob in submitting two forms with one button.

i've following two forms

 

<HEAD>

<TITLE></TITLE>

<META NAME="Generator" CONTENT="EditPlus">

<SCRIPT LANGUAGE="JavaScript">

<!--

function Envia()

{

 

document.frm1.submit();

var s2=document.getElementById('email').value;

document.getElementById('email2').value=s2;

document.frm2.submit();

}

 

//-->

</SCRIPT>

</HEAD>

 

<BODY>

<FORM method="get" ACTION="http://localhost:8080/test.jsp" NAME="frm1">

<INPUT TYPE="text" NAME="email" id="email">

<INPUT TYPE="submit" value="Enviar" >

</FORM>

 

 

<FORM method="get" ACTION="http://localhost:8080/test2.jsp" NAME="frm2">

<INPUT TYPE="text" NAME="email2" id="email2">

<INPUT TYPE="submit" value="Enviar" onClick="Envia();">

</FORM>

</BODY>

</HTML>

 

is it possible to submit both form with a single button??????

Link to comment
https://forums.phpfreaks.com/topic/157927-help-two-form-submit-prob/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.