[thelist] php: problem with variable

Allie Micka allie at pajunas.com
Wed Jan 23 09:22:35 CST 2002

> Not if register_globals is not turned on... if register_globals
> isn't turned
> on, then you can only access form vars through the $HTTP_POST_VARS[] and
> $_POST[] variables.

This is probably the most likely case, and has happened to a lot of people
who use the 'recommended' php.ini file from recent installations.  In order
to access the form fields the way you're trying to do you'll have to make a
config change as Jason mentioned.

To do this, you can either edit php.ini, httpd.conf or, if you're on a
hosted system that allows them, in a per-directory .htaccess file.   See
http://www.php.net/manual/en/configuration.php for more.

Good Luck,
Allie Micka
reusable web components and hosting
pajunas interactive, inc

More information about the thelist mailing list