Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Posting form to one external url, but sending user back to same url

Status
Not open for further replies.
Use AJAX. Have the form use ajax to post the info to the external site. Check the value it returns. If successful, display the message on the page.

-----------------------------------------
I cannot be bought. Find leasing information at
 
You can only use AJAX to post to something on the same domain I believe.

To achieve this (using AJAX) you will need a proxy running on your domain at that then marshalls the post to the desired external domain.

It may be that the way to solve this is to submit to the server at anyway and have the server handle passing the post params to the 3rd party.

Cheers,
Jeff

[tt]Visit my blog [!]@[/!] Visit Code Couch [!]@[/!] [/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
You could popup a child window, post the form to the child window, then redirect your parent window page, and on the new "email sent" confirmation page, close the child window. Users will probably be warned that their form submission is being redirected, though, for security purposes.

Otherwise, you could use an Ajax variant to achieve cross-domain posting ability. One such thing is "flXHR" ( There are others, too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top