Sending a Postback

Discussion in 'PHP' started by pdent1, May 27, 2010.

  1. #1
    I am working on an offer site and trying to figure out how to send a postback to another site...What I'm thinking will work I'm not sure since the page won't be left open but when I receive my information at mysite.com/postback.php and I insert what I need into my database can I run
    <META HTTP-EQUIV=Refresh CONTENT="1; URL=http://www.yoursite.com/yoururl.php?post=<? . $info . ?>">
    PHP:
    or since mysite.com/postback.php is reached by a server and not a actual computer will the refresh even work? If you have a better way or idea I would love to hear it.
     
    pdent1, May 27, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    If I understand you correctly, that you simply want to redirect, your on the right path however you'd need to echo $info (html method):

    <META HTTP-EQUIV=Refresh CONTENT="1; URL=http://www.yoursite.com/yoururl.php?post=<?php echo $info; ?>">
    Code (markup):
    Or (php method):

    <?php
    header("location: http://www.yoursite.com/yoururl.php?post=".$info); 
    ?>
    PHP:
     
    danx10, May 27, 2010 IP