DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Javascript - Send Multi-forms

12.16.2005
| 4369 views |
  • submit to reddit
        
<script type="text/javascript">
function sendcopy(el) {
	el.action = '/cgi-bin/action2.pl'
	el.submit()
	el.action = '/cgi-bin/action1.pl'
	el.submit()
}
</script>


//<form id="myform" method="post" action="" onsubmit="sendcopy(this)">
//-------------------------------------------------------------------


//However, this seems NOT to work with Opera 7 and Netscape 4. They only send the form to action1. Mozilla and IE are behaving as I hoped they would, and are calling both.