Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
12-15-2008, 11:41 PM #1
- Join Date
- Dec 2008
- Thanked 0 Times in 0 Posts
Automated Postback to alternate domain
Here's the scenario I could use some help with.
Visitor A comes to my site and clicks on a forum button verifying they were there. I then need to send a Postback to the sending site to let them know that Visitor A was in fact here on my site. I'm confused on how to make a PHP page generate and send a postback without any direct user intervention.
Site A: Page 1 has a Form with a Buttom
Site A: Page 2 Receives Post from Visitor click, processes as necessary, and then sends a notification $_POST to Site B
Site B: Receives $_POST data from Site A
Thanks for the help! Happy Holidays!
12-15-2008, 11:56 PM #2
not sure about background posts think perhaps that'd have to be an ajax style request.
gets could be done via an fopen() or a simplexml request I guess
12-16-2008, 03:28 PM #3
- Join Date
- Jun 2002
- Nashville, TN
- Thanked 26 Times in 26 Posts
You need to send an asynchronous http post.
Its not easy/possible to do using the usual methods like CURL or fopen.
I did find this blog post about async posts. It looks like it works.
http://petewarden.typepad.com/search...o-post-an.htmleak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."