Re: Apache 2.*

From: Date: Mon, 24 Nov 2003 16:05:50 +0000
Subject: Re: Apache 2.*
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170804@lists.php.net to get a copy of this message
Hello, what you're looking for is called Register Globals which is turned off, therefore you just cannot use $variable but must use $HTTP_POST_VARS['variable']. It is turned off for security reasons and can be usually find in php.ini file (ask your system administrator). On Monday 24 November 2003 16:35, Renaldo De Silva wrote: > Forgive me if you've already addressed this, I'm trying to post some > variable to a php sript and they just arn't registering if i use the code > below it get's the variable and it's contents > > <? > > echo "Values submitted via POST method:<br>"; > reset ($HTTP_POST_VARS); > while (list ($key, $val) = each ($HTTP_POST_VARS)) { > echo "$key => $val<br>"; > } > > ?> > > but if I call the variable directly > > <? echo $renaldo; ?> it prints nothing, should I go ahead and take apache > 2.* off my box or if the fix easy. -- : :. kind regards :.. Martin Hudec :.: :.: =w= http://www.aeternal.net :.: =m= +421.907.303393 :.: =@= corwin@aeternal.net :.: :.: "When you want something, all the universe :.: conspires in helping you to achieve it." :.: - The Alchemist (Paulo Coelho)

« previous php.general (#170804) next »