PHP and $_GET not working
#1
Scooby Regular
Thread Starter
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes
on
0 Posts
PHP and $_GET not working
On all my machines accessing the $_GET["param"] works absolutely fine but on the live server which I have no control over it does not.
The _SERVER["QUERY_STRING"] returns no value
Nowhere in my phpinfo() is any mention of my pass or SOMETHING.
My code is simply this:
<?php
if (isset($_GET["pass"]))
echo "You have passed in ".$_GET["pass"];
else
echo "You have not passed in anything - <a href=\"test.php?pass=SOMETHING\">Click here to pass in SOMETHING</a>";
?>
and http://localhost/test.php?pass=SOMETHING
simply says 'You have not passed in anything...'
Anyonne any idea why the hell this is?
I thought $_GET and $_POST were standard stuff...
Thanks Rich.
The _SERVER["QUERY_STRING"] returns no value
Nowhere in my phpinfo() is any mention of my pass or SOMETHING.
My code is simply this:
<?php
if (isset($_GET["pass"]))
echo "You have passed in ".$_GET["pass"];
else
echo "You have not passed in anything - <a href=\"test.php?pass=SOMETHING\">Click here to pass in SOMETHING</a>";
?>
and http://localhost/test.php?pass=SOMETHING
simply says 'You have not passed in anything...'
Anyonne any idea why the hell this is?
I thought $_GET and $_POST were standard stuff...
Thanks Rich.