SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Brasil
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $_SERVER and POST

    When i am using $_SERVER['PHP_SELF'] to reload a page with new codes (using mysql), i read in some book that it could be done using this code:

    echo "<a href=\"$current_url?name=Rodrigo\">Nome: Rodrigo<br>";

    but and if i wanna hide this variable (name) like when you use the POST method on forms?? is it possible??


    thanks

    regards
    Rodrigo

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use $_COOKIE or $_SESSION
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Brasil
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks beetle... i will try it....

  4. #4
    ********* Member website's Avatar
    Join Date
    Oct 2002
    Location
    Iceland
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, that will work but I will have to warn you, you can really piss people off by doing this since you might brake the back button and bookmarks will also not work as expected.

    You have been warned.
    - website

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Brasil
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok... thanks website... i'll be aware of it....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •