Re: Newbie again: get no $QUERY_STRING

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
---------------------------------------------------

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux