NYCPHP Meetup

[nycphp-talk] $_POST

Chris Shiflett shiflett at php.net
Sat May 24 12:12:28 EDT 2003


--- "Christopher R. Merlo" <cmerlo at turing.matcmp.ncc.edu> wrote:
> Also, if you disable globals (generally a good idea), $_POST won't
> work anymore.  Replace with $HTTP_POST_VARS.

That's not quite right. $HTTP_POST_VARS and $_POST are the same thing. $_POST
was added in 4.1.0 to make it more convenient to use. What register_globals
does is register variables sent from the client into globals, so that you can
use $foo instead of $_POST['foo'] (or $HTTP_POST_VARS['foo'] if you use an
older version).

Chris



More information about the talk mailing list