Is it possible to fetch this?

Discussion in 'PHP' started by khan11, Nov 23, 2007.

  1. #1
    hello guys!


    i want some information in php..


    As we know Request_URI fetches the location/file.php?mydata=show

    i want something different to use for my navigation system..

    which is


    my page is like:
    mysite.com/mypage.php?mydata=show&sort=asce

    I want to fetch the after part of .php extension..
    like:

    ?mydata=show&sort=asec..

    so is it possible?

    if, then how can i fetch this?


    thank you for instant help..
     
    khan11, Nov 23, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    echo $_SERVER['QUERY_STRING'];
    
    PHP:
     
    nico_swd, Nov 23, 2007 IP
  3. hip_hop_x

    hip_hop_x Active Member

    Messages:
    522
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    90
    #3
    $data=$_GET['mydata'];
    $sort=$_GET['sort'];
    PHP:
    Give me Itrader :p
     
    hip_hop_x, Nov 23, 2007 IP
  4. khan11

    khan11 Active Member

    Messages:
    615
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    58
    #4
    exactly this is what i was looking for..

    thank you

    hip_hop_x, thank you too but i was not asking for variables..
     
    khan11, Nov 23, 2007 IP
  5. hip_hop_x

    hip_hop_x Active Member

    Messages:
    522
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    90
    #5
    sory, my bad, didn't understood the right question
     
    hip_hop_x, Nov 23, 2007 IP