Re: Newbie again: get no $QUERY_STRING

From: Date: Wed, 27 Oct 2004 13:08:29 +0000
Subject: Re: Newbie again: get no $QUERY_STRING
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200432@lists.php.net to get a copy of this message
Horst Jäger wrote:
I get no $QUERY_STRING (and no GET- or POST-Params). I'm using PHP 4.3.3 on a SUSE LINUX 9.0 Machine. When I view the following page: [html][head][/head][body] [?php echo gettype($QUERY_STRING); ?] [/body][/html]
register_globals Off Off
You have register_globals turned off so $QUERY_STRING won't work. DO NOT turn on register_globals. Instead, use $_SERVER['QUERY_STRING'] as a replacement for $QUERY_STRING. Read here for more info: <http://www.php.net/variables.predefined> -- Regards, Ben Ramsey http://benramsey.com --------------------------------------------------- Atlanta PHP - http://www.atlphp.org/ The Southeast's premier PHP community. ---------------------------------------------------

« previous php.general (#200432) next »