View Single Post

  #2 (permalink)  
Old 12-04-2005
Connector5
 
Posts: n/a
Default Re: $HTTP_POST_VARS vs $_POST

$HTTP_POST_VARS is depreciated in favor of $_POST.

The php.ini setting to enable $HTTP_*_VARS is "register_long_arrays".


"Hendry Taylor" <hendry.taylor@btinternet.com> wrote in message
news:dmt9gv$m96$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
> I have some php that has a form and I get some variables from the form I
> had it coded using $HTTP_POST_VARS but it gave me errors saying
> "Undefined variable: HTTP_POST_VARS" then I changed it to $_POST and it
> worked.
>
> I do not quite understand the differences and why one works and one does
> not. I have register_global = Off, I tried it with On but still did not
> work.
>
> I am running solaris 10, apache 2, php 5.0.4.
>
> I always believed that the two were the same, just slight different way
> of coding.
>
> Hendry



Reply With Quote