php site redirect

Discussion in 'PHP' started by martyoo, Sep 1, 2007.

  1. #1
    Hi,
    What I want to do is have a script that when the user clicks submit they are taken to site but redirected straight away. This is the code im using. Basically I want the data in the link to be submitted to the site site.net and the user to be directed to another site. Is this possible?
    Thanks

    if (!isset($_POST[submit])) {
    $form = "yes";
    } elseif (isset($_POST[submit])) {
    header("Location: http://site.net/sendsms.aspx?s=m&u=&p=&d=$_POST[d]&m=$_POST[m]");
     
    martyoo, Sep 1, 2007 IP
  2. James.Blant

    James.Blant Active Member

    Messages:
    250
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    hmmm ...
    you can send aribales in GET method . or using curl .
    with curl you can send variables in POST/GET method without any restriction to any url you want and check result

    http://curl.haxx.se
     
    James.Blant, Sep 1, 2007 IP
  3. martyoo

    martyoo Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the link. Ill give it a go.

    Marty
     
    martyoo, Sep 1, 2007 IP