thanks, this was fixed the problem.

----- Original Message -----
From: "Chris Hewitt" <[EMAIL PROTECTED]>
To: "Abel Monroy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 1:11 PM
Subject: Re: [PHP-INST] php doesn't work with variables like a.php?v=100


> 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
>

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to