Re: php doesn't work with variables like a.php?v=100

From: Date: Wed, 22 Jan 2003 12:11:20 +0000
Subject: Re: php doesn't work with variables like a.php?v=100
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-9783@lists.php.net to get a copy of this message
Abel Monroy wrote:
Hello, I have installed php 4.2.3 for Windows, in a Apache server ( 1.3.27 ). I think I have missed some step during the installation of php. Everything is all right, and php executes correctly things like <?php echo "Hello world"; ?> but if I want to pass a variable to other php, in this way, www.localhost.com/testing.php?test=ok and the code inside testing.php is: <?php
if ($test=="ok") {     // I have tried as well to put strcmp (($test, "ok") == 0)
echo "it works"; } else echo "oopps, ok=$ok--"; ?> I obtain the wrong message ( oopps, ok=-- ). , so ok is null. I think I need to put something more in my httpd.conf file, what I don't know what. The default setting for register_globals in php.ini has changed from "on" to "off" for security reasons. Use the superglobals $_GET['ok'] and $_POST['ok'] depending upon GET or POST data. Its in the release notes.
Regards Chris

« previous php.install (#9783) next »