RE: [PHP] newbie question

From: Date: Thu, 03 Oct 2002 09:12:28 +0000
Subject: RE: [PHP] newbie question
Groups: php.general 
Request: Send a blank email to php-general+get-118713@lists.php.net to get a copy of this message
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:reymond@unri.ac.id] Sent: 02 October 2002 12:24 To: php-general@lists.php.net 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

« previous php.general (#118713) next »