Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    0
    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!

  • #2
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    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
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com

  • #3
    eak
    eak is offline
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Location
    Nashville, TN
    Posts
    354
    Thanks
    0
    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.html
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •