[Solved] PHP - Problem with receiving ******?id=4
Posted: Tue Mar 23, 2004 6:43 pm
I have two files on my system the first 1 is test.htm and it contains:
<a href="test1.php?id=4">Link</a>
The second file contains (test1.php)
<?php
if( $id == 4) { print "It works"; }
else { print "No work"; }
?>
For some reason it never prints "It works" I always get "No work". I am running on a Debian 2.2.24, Apache 2.0.48, PHP 4.3.4.... I don't know if it is a Apache Problem or a PHP problem. I have tried seeing if it was apache problem by doing request_headers() and headers_sent() and response_headers() they all work fine.
Any help would be greatly appreciated.
Thank You...
<a href="test1.php?id=4">Link</a>
The second file contains (test1.php)
<?php
if( $id == 4) { print "It works"; }
else { print "No work"; }
?>
For some reason it never prints "It works" I always get "No work". I am running on a Debian 2.2.24, Apache 2.0.48, PHP 4.3.4.... I don't know if it is a Apache Problem or a PHP problem. I have tried seeing if it was apache problem by doing request_headers() and headers_sent() and response_headers() they all work fine.
Any help would be greatly appreciated.
Thank You...