Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

PHP and $_GET not working

Thread Tools
 
Search this Thread
 
Old 20 September 2005, 11:26 AM
  #1  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Default 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.
Old 20 September 2005, 07:33 PM
  #2  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Default

Just in case anyone cared, it was the way the ISP had things setup up. Nothing wrong with the code...




All times are GMT +1. The time now is 09:38 PM.