David Dorward wrote:
VK wrote:
Essentially ones the user on my site hits submit they would get a thank
you page but on the back end I want to take the values from the form
and submit them to a form on another url on another site
<iframe name="dumpster" src="foobar.html"
width="10" height="10" style="display:none">
...
<form name="frm1" action="toOtherURL" target="dumpster">
Wouldn't work. The user wouldn't get the thank-you page.
OP wrote: I just want to show them a thank you page
and then have the submission happen to the other
directories on the back end.
If I got it right then the "Thank you" message is displayed on the main
page - even before the submission happened. That is a trivia to show
something onsubmit with a minimum of scripting. Of course it is more
robust to have some script running onload in the server response (in
case of submission failure).
In a similar situation with cross-domain account management I simply
used borderless iframes with forms:- CSS'ed on the main page so
visually it was like one page. Plus "status" iframe at the bottom where
all submissions go. The beauty of it what it is mostly functional even
with JavaScript disabled. Of course a control over involved domains is
needed so all forms would have the needed layout and style.