RE: [PHP] Odd bug! Anything wrong?
| From: | James Moore | Date: | Sun, 10 Sep 2000 09:51:00 +0000 |
| Subject: | RE: [PHP] Odd bug! Anything wrong? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16045@lists.php.net to get a copy of this message | ||
>
> > Now, I thought PHP will parse the query string automatically,
> what's going
> > on? Any idea?
>
>
> It will if track_vars is on in php.ini
>
> By the way, you should be expecting posted form fields there, not a query
> string
>
I think you mean register globals :) That is what does this, track_vars sets
the HTTTP_*_VARS[] which should be used as they are far more secure (you can
tell where you info comes from more than when using register_globals.
See
http://www.php.net/manual/configuration.php
and to see what track_vars sets
http://www.php.net/manual/language.variables.predefined.php
http://www.php.net/manual/language.variables.external.php
HTH
James