By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,830 Members | 2,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,830 IT Pros & Developers. It's quick & easy.

Easy Php Question. Take two secconds.

P: 34
How do i receive data from when you put the ? mark after the php file in your address bar. Like frugooscape.net/highscore.php?username=frugooscape . How would i do that. I tried something like global $username; . That did not work though. If anyone could help that would be nice.
Apr 29 '07 #1
Share this Question
Share on Google+
3 Replies


P: 34
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 :
http://www.geekforum.com/forum/forum_posts.asp?TID=183
Apr 29 '07 #2

mwasif
Expert 100+
P: 801
Use $_GET like
[PHP]echo $_GET["username"];[/PHP]
Apr 29 '07 #3

P: 2
Use $_GET like
[PHP]echo $_GET["username"];[/PHP]
you can also use
[PHP]echo $_REQUEST["username"];
May 1 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.