English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have a contact form setup and when a user hit's submit, I need to send (via POST) to SalesForce.com and the data needs to also send to my thank you page so that I can send out auto-responses and lead information.

Is there a way to post one form to two pages? Or can someone come up with a good workaround?

PHP or Javascript please.

Thanks

2007-01-23 09:10:46 · 2 answers · asked by Twister_Mc 1 in Computers & Internet Programming & Design

Roland. - I can create the scripts if you can tell me what code will auto post. :)

2007-01-24 07:00:07 · update #1

2 answers

Wait just 1 minute! Javascript can do multiple asynchronous POSTs!

with ajax you can do all sorts of submits, partial submits, or whatever! and then leave the big submit in the form to do the standard work.

ajax is pretty difficult to understand or even master if you do all the work yourself!

but with the proper library it's easy! I use http://jquery.com and a second asych form transmit is trivial code!

2007-01-24 07:21:10 · answer #1 · answered by jake cigar™ is retired 7 · 0 0

You do not need to post it twice. You can post it to a php script that you write and use that script to also send the $_POST variables to Salesforce.com. I have worked with salesforce and did something similar. Javascript will NOT do it. once something is posted that is it.

Thanks

RJ

2007-01-23 17:17:31 · answer #2 · answered by Anonymous · 1 0

fedest.com, questions and answers