Jump to content

Recommended Posts

Hello everyone,

 

I have a form and I need to post its values to two external sites. I know how to post to one site, but not sure if it's possible to post the form values to a second external site as well.

 

Is there a PHP function/code or some way of accomplishing this?

I'm sure you can do this with cURL.

 

Thanks Caesar, any examples on how to do this?  From what I can tell I first need to install the libcurl package.  But first I wanna make sure this is possible so any examples from anyone would be greatly appreciated!

OR,

 

HTTP POST from PHP, without cURL

 

http://netevil.org/blog/2006/nov/http-post-from-php-without-curl

 

mjdamato I looked at the code but honestly cannot make sense of it (new to PHP).  But I'm guessing I can tweak this code to post to two different urls on submit?  So this solution should work?  Thanks ...

I didn't read through that page, but it appears to be a function that allows you to post data to a page through the code. So, you would just need create a page that accepts the POSTed data, then rePOST the data by using that function twice (once for each external page to post the data to)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.