Re: $HTTP_GET_VARS

From: Date: Wed, 20 Dec 2000 06:27:35 +0000
Subject: Re: $HTTP_GET_VARS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31174@lists.php.net to get a copy of this message
URB! > Are the arrays $HTTP_GET_VARS and $HTTP_POST_VARS > read only? I cannot find it in the documentation but also cannot seem > to change a value within a script. Weird. I can modify it on my machine. WinNT, PHP 4.0.4-dev, Apache. Here's my test code: <a href="test.html?foo=blah">this page</a><br /> <?php echo "<br>" . $HTTP_GET_VARS['foo']; echo "<br>" . $HTTP_GET_VARS['bar']; $HTTP_GET_VARS['foo'] = "lalala"; $HTTP_GET_VARS['bar'] = "scar"; echo "<hr>"; echo "<br>" . $HTTP_GET_VARS['foo']; echo "<br>" . $HTTP_GET_VARS['bar']; ?> Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#31174) next »