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

From: Date: Wed, 22 Jan 2003 12:37:18 +0000
Subject: Re: php doesn't work with variables like a.php?v=100
Groups: php.install 
Request: Send a blank email to php-install+get-9789@lists.php.net to get a copy of this message
www.localhost.com/testing.php?test=ok
I obtain the wrong message ( oopps, ok=-- ). , so ok is null.
thats coz regiser globals are off in ur php.ini do this
<?php
if ($test=="ok") {     // I have tried as well to put strcmp
if($_GET['test']=="ok")
(($test, "ok") == 0) echo "it works"; }
else    echo "oopps, ok=$ok--";
?>
hope this helps ..... goodluck toby ..... _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

« previous php.install (#9789) next »