However, on one server, I get the following result:
1. -2.
My question is, why doesn't $_GET return the values of "yes" and "no" ?
On this server (which is running Apache 2.0 and PHP 4.2.2), register_globals is set to 'on' and safe-mode is set to 'off'. I've already tried to change the code to:
<?php
print "1. " . $c . "-2. " . $s;
?>
and still get the result:
1. -2.
Are there any other directives that must be set in a certain way to enable
$_GET ? Also, this server is secure, so that I use the protocol of "https" rather than "http" for this page. I'm not sure if that matters.
I have also tried substituting $_GET with $HTTP_GET_VARS and receive the same result.
I also tried to create a form and post the variables c and s,
but the above code still gives me:
Array ()
Could PHP be set up to block $_GET and $POST requests?
Replace the php.ini file with original? The problem is I don't have access
to php.ini, nor do I know if it is the original or not. Could this really affect
$_GET and $_POST?
yes, I've tried using $HTTP_GET_VARS
when I attempt:
<%php
print_r($HTTP_GET_VARS);
%>
I get:
Array()
as the output.
One thing, though, that I learned was that when I try:
<%php
phpinfo();
%>
The output doesn't contain an "Apache Environment"
section with variables and values. I've run this on another
server whose output did have the "Apache Environment"
section. I'm not sure if this means anything, though, just
something I noticed that was different.
Bookmarks