It depends on the version of PHP, in older versions you just use the variable name ie in your example just use $var to access it's contents. In new versions, with register globals turned off use $_GET['var'] to access it ie:
Print $_GET['var'] Will print numberx Thanks Mark -----Original Message----- From: Remon Redika [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 12:24 To: [EMAIL PROTECTED] Subject: [PHP] newbie question I am newbie in php I have var $query_string in my address page. I want get value of query string. For example I give string on my query string like www.mypages.com?var=numberx I just want get a value of var or "numberx" I usually do this var on asp request.querystring("var") , so I'll get the value = "numberx" how i do it on php...? sorry about my English. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php