Jump to content

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


tqla

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.