Re: php and POST

From: Date: Wed, 10 Apr 2002 15:27:19 +0000
Subject: Re: php and POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92405@lists.php.net to get a copy of this message
If you changed the php.ini to set the register_globals to on, did you also restart apache? I'm sure you are aware that register globals is now turned off by default in php 4.1+. Look at phpinfo() and make sure register_globals is *really* on. You really ought to be writing code with $_POST[], read http://www.php.net/manual/en/security.php to see why. ----- Original Message ----- From: "Not Telling You!" <junk@centliq.com> To: <php-install@lists.php.net> > But I cannot use passed variables. I can however print what > was passed using... > > printf("%s", $HTTP_POST_VARS["name"]); > > That works fine, I'm just unable to just call $name. The php code does > work as it is currently running on a RH 7.1 box with Apache 1.3.20 and > php 4.0.6.

« previous php.general (#92405) next »