if register_globals setting is on (in php.ini) then $foo will be
available, otherwise use the predefined variable HTTP_GET_VARS :
index.php?foo=blah
print $foo;
print $HTTP_GET_VARS['foo'];
http://www.php.net/manual/en/language.variables.predefined.php
http://www.php.net/manual/en
PROTECTED]]
Sent: Sunday, April 29, 2001 1:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] grabbing variables from the query string
Hi,
How do you grab variables from a query string in a URL?
I've used this with ASP and it would be done as follows:
firstName = request.querystring("fName&quo
Hi,
How do you grab variables from a query string in a URL?
I've used this with ASP and it would be done as follows:
firstName = request.querystring("fName")
I've tried different variations of this in my PHP pages but I can't seem to
get it to work. I've looked in the PHP manual but can't fin
3 matches
Mail list logo