delickate Posted May 13, 2009 Share Posted May 13, 2009 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?????? Quote Link to comment https://forums.phpfreaks.com/topic/157927-help-two-form-submit-prob/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.