August 2nd, 2007
How can I post one form to two sources?
Twister_Mc asked:
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.
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
Roland. - I can create the scripts if you can tell me what code will auto post.
If you liked this post, subscribe to Wpdesigner's RSS feed.
Filed under: Programming & Design

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
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 and a second asych form transmit is trivial code!