Jump to content

[SOLVED] Need to submit page to more than one Action.


Recommended Posts

I have a form that submits to a URL similar to this:

 

www. sub1.website.com/reg.php

 

This works fine. But I'd also like to send the variable information to

 

www. sub2.website.com/reg.php

 

I'm not sure that a form can do this on its own so I was thinking of creating an interim script that will do it.

 

Does anybody know how to take all variables from a form and submit them to multiple locations for processing?

 

Thanks.

isert the data into a database both can read so only one needs to process and both can read, or you could use a meta tag refresh and have the page process then send the redirect the user to the other page (via the meta refresh tag) and $_GET info for both.

 

the second method is not secure btw

Thanks Wooly, I'm considering your idea. but I don't think that will workin this case because I need to use an existing database.

 

Skunkbad, your reply is not really in the spirit of this board. Can you give me an example? You might as well have said, "PHP can do it, look it up."  :)

 

 

Thanks Wooly, I'm considering your idea. but I don't think that will workin this case because I need to use an existing database.

 

Skunkbad, your reply is not really in the spirit of this board. Can you give me an example? You might as well have said, "PHP can do it, look it up."  :)

 

ive got another way

have page one write the info to a file, and have the other site use file_get_content('url.to.first.site.file') and set them both to check the others files periodically

Thanks everybody. I gotta lot of good advice here to get me going. Skunkbad, I learned a lot about Curl tonight. That last link you gave looks like a good solution too!

 

I think you will find yourself using cURL a lot now that you know it exists. I use it all the time.

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.