Pulling Variables from a url

Discussion in 'HTML & Website Design' started by oseymour, May 21, 2007.

  1. #1
    I know there is a way to pull a keyword from a url such as /help.php?keyword....

    is there a way to pull multiple keywords from a url?
     
    oseymour, May 21, 2007 IP
  2. Andy Peters

    Andy Peters Peon

    Messages:
    430
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #2
    index.php?details=blah blah blah&details2=rah rah rah
    Code (markup):
    $blah = $_GET['details'];
    $rah = $_GET['details2'];
    echo "$blah $rah";
    PHP:
     
    Andy Peters, May 21, 2007 IP
  3. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #3
    thanks. I'll try that
     
    oseymour, May 21, 2007 IP
  4. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #4
    php.net is a great reference resource.

    Q...
     
    QiSoftware, May 21, 2007 IP
  5. Andy Peters

    Andy Peters Peon

    Messages:
    430
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So is Andy Peters
     
    Andy Peters, May 21, 2007 IP
    oseymour likes this.