-
HELP - submitting forms to multiple scripts
I need to figure out how I can submit a single form to multiple scripts..
Here is a script I found, But I know nothing about writing, so I am not sure
why this isnt working..
When I run it I get an error at the document.help.action line
PLEASE HELP...
<script language="javascript">
function submitMe(theform){
first(theform);
second(theform);
function first(form1){
form1.submit();
}
function second(form2){
ExtendedSubmit = "http://www.mycompany.com/input2.cfm";
document.help.action = ExtendedSubmit;
form2.submit();
}
}
</script>
<BODY>
<form name="help" action="http://www.myfirstcompany.com/input.cfm" method="POST">
<input type="Text" name="name">
<input type="button" value="Test" onClick="submitMe(this.form)">
</form>
-
RE: HELP - submitting forms to multiple scripts
I too got the erroe and i adjusted the form name
please note
<form name="help"
is correct or not
or else say document.yourformname.action = ExtendedSubmit;
>I need to figure out how I can submit a single form to multiple scripts..
>
>Here is a script I found, But I know nothing about writing, so I am not sure
>why this isnt working..
>
>When I run it I get an error at the document.help.action line
>
>PLEASE HELP...
>
>
><script language="javascript">
>function submitMe(theform){
>first(theform);
>second(theform);
>function first(form1){
>form1.submit();
>}
>function second(form2){
>ExtendedSubmit = "http://www.mycompany.com/input2.cfm";
>document.help.action = ExtendedSubmit;
>form2.submit();
>
>}
>}
></script>
><BODY>
><form name="help" action="http://www.myfirstcompany.com/input.cfm" method="POST">
>
><input type="Text" name="name">
><input type="button" value="Test" onClick="submitMe(this.form)">
></form>
>
Message sent from http://www.aewnet.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks