I have a similar issue to this ... I have my print_r within a post using RunPHP.
In my case i can see the output of the print_r shows that query_string is null even though my URI that i called the page with includes a query string. lots of the other values are being returned.
My URI: http://localhost/wordpress/blog/category/sidebar/register/?var=value
result of the print_r:
Array
(
[HTTP_HOST] => localhost
[PATH] => C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Infoprint Select;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\ThinkPad\ConnectUtilities;C:\WINDOWS\Downloaded Program Files;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ATI Technologies\ATI Control Panel
[SystemRoot] => C:\WINDOWS
[COMSPEC] => C:\WINDOWS\system32\cmd.exe
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
[WINDIR] => C:\WINDOWS
[SERVER_SIGNATURE] =>
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6 Server at localhost Port 80
[SERVER_SOFTWARE] => Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6
[SERVER_NAME] => localhost
[SERVER_ADDR] => 127.0.0.1
[SERVER_PORT] => 80
[REMOTE_ADDR] => 127.0.0.1
[DOCUMENT_ROOT] => C:/xampplite/htdocs
[SERVER_ADMIN] => admin@localhost
[SCRIPT_FILENAME] => C:/xampplite/htdocs/register.php
[REMOTE_PORT] => 4340
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.0
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /register.php
[SCRIPT_NAME] => /register.php
[PHP_SELF] => /register.php
[REQUEST_TIME] => 1160425108
[argv] => Array
(
)
[argc] => 0
)
in the header.php in my theme, i can see the var=value but in the page template page.php, the value is cleared.
suggestions appreciateed. thanks
Glyn