Easy Php Question. Take two secconds.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frugoo Scape
    New Member
    • Oct 2006
    • 34

    Easy Php Question. Take two secconds.

    How do i receive data from when you put the ? mark after the php file in your address bar. Like frugooscape.net/highscore.php?u sername=frugoos cape . How would i do that. I tried something like global $username; . That did not work though. If anyone could help that would be nice.
  • Frugoo Scape
    New Member
    • Oct 2006
    • 34

    #2
    NVM

    This site is dead. Not a lot of people on it.
    I figured it out. For people that have the same issue go to :

    Comment

    • mwasif
      Recognized Expert Contributor
      • Jul 2006
      • 802

      #3
      Use $_GET like
      [PHP]echo $_GET["username"];[/PHP]

      Comment

      • srganesan
        New Member
        • May 2007
        • 2

        #4
        Originally posted by mwasif
        Use $_GET like
        [PHP]echo $_GET["username"];[/PHP]
        you can also use
        [PHP]echo $_REQUEST["username"];

        Comment

        Working...