Forum Moderators: open
I have a similar issue from here
[webmasterworld.com...]
I need to POST data to two forms from one button.
Many Thanks
I need to POST data to two forms from one button.
do you need a return from both? You could have a script php/perl/asp that will handle the two submits one after the other and then return some kind of confirmation when it is done.
I don't see a quick and dirty way though, it takes some programming and you would need a server side solution, not js.
and the other page is simply going to grab the form fields and then perform a 'behind the scenes' ftp transfer.
I'm fooling around with posting the same form to different frames, but I am still stumbling.
Any help is appreciated.
Joe
document.form2_name.field1_name.value=document.form1_name.field1_name.value;
The second would look something like:
form1_name.submit();
form2_name.submit();
The method and action values specified for each form would, of course, determine how they were handled.
<form action="http://www.example.com/NEXT.php" method="POST">
<input type="hidden" name="name1" value="value1">
<input type="hidden" name="name2" value="value2">
<input type="submit" value="Submit">
</form>
Then, in NEXT.php you would do whatever business you had there, and submit the LAST program, which could have a line like this in the header:
<meta http-equiv="refresh" content="0;url=http://www.example.com/RETURN_TO_ORIGINAL_PAGE.html">";
Seems like it might work....