faqts : Computers : Programming

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

35 of 49 people (71%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

how can i submit 2 forms on one click or one button

Jul 25th, 2008 18:40
John Martin, Taksh Verdhan, Deepak Bansal, Rachit Bagda, Luiz Paulo Rosa, parul vedpathak, http://www.rtnaustralia.com , http://www.websitecompanyindia.com


You can do this with JavaScript. See the example below:
<HEAD>
<TITLE></TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="Luiz Paulo C. Rosa - Mediavox Interativa">
<SCRIPT LANGUAGE="JavaScript">
<!--
function Envia()
	{
	document.frm1.submit();
	document.frm2.submit();
	}
Title : Web Design Comapny India,Web Development Jaipur
URL : http://www.websitecompanyindia.com
Description : Website company India provides Web Design India,Web
Development 
India,Web Promotion 	      India,SEO India, Web Design Service Jaipur
-----------------------------------------------------------------------------
----------------
Title :Web Design Jaipur
URL : http://www.webs4soft.com
Description : Webs4Soft is a leading offshore outsourcing company in India. 
Our services include web design, website design, graphic design, web 
development, SEO, internet marketing, web hosting and website maintenance 
services.
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM METHOD=POST ACTION="testeForm1.asp" NAME="frm1">
   <INPUT TYPE="text" NAME="frm1">
</FORM>
<FORM METHOD=POST ACTION="testeForm2.asp" NAME="frm2">
	<INPUT TYPE="text" NAME="frm2">
</FORM>
<INPUT TYPE="button" value="Enviar" onClick="Envia()">
</BODY>
</HTML>
http://www.csglobal.co.in
http://www.rachit.com http://www.websitedevelopmentcompany7.com