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.

Any idea?

Abel.

Reply via email to