This is a discussion on Re: [PHP] Apache 2.* within the PHP General forums, part of the PHP Programming Forums category; --- Martin Hudec <corwin@aeternal.net> wrote: > what you're looking for is called Register Globals which is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--- Martin Hudec <corwin@aeternal.net> wrote:
> 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']. To add to this, if register_globals is disabled by default, it is likely that you're using a version of PHP that is recent enough to have $_POST. So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only is it shorter, I believe the older name is deprecated. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp |
|
|||
|
Yep I forgot to mention that it is off by default :). Hmmm nice to know that
there is shorter name :). Thanks for info, I haven't used PHP for long time. On Monday 24 November 2003 17:13, Chris Shiflett wrote: > To add to this, if register_globals is disabled by default, it is likely > that you're using a version of PHP that is recent enough to have $_POST. > So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only > is it shorter, I believe the older name is deprecated. -- : :. 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) |