hide value of the variables?

Discussion in 'PHP' started by razrjm, Jul 3, 2007.

  1. #1
    sir, is there any way how to hide a variable? coz, im making a php program using GET and i dont want the value of that variable be visible to the url..
    this is my code:

    echo "<tr><td><img src='$icon' border='0'></td><td><a href=\"opendir.php?a=$p\">$file</a></td>";


    thanks..
     
    razrjm, Jul 3, 2007 IP
  2. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well you could use something like base64_encode to encode the value. But of course if the user wants to they could decode it anyways.
     
    InFloW, Jul 3, 2007 IP
  3. razrjm

    razrjm Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks inFlow for your quick reply..
     
    razrjm, Jul 3, 2007 IP
  4. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want to hide values then use sessions and don't display the values on the page.
     
    KalvinB, Jul 3, 2007 IP