Is this a bug in PHP...
Naming multiple checkboxes with the one array name (eg, fred[]) but giving each checkbox a different value allows one to gather information about which checkboxes are selected when the form is submited by reading the one global array variable $fred[] my the PHP script.
However, if "register_globals" is disabled, one instead should use $HTTP_POST_VARS["fred"][] (assuming "track_vars" is enabled).
Problems is, $HTTP_POST_VARS["fred"] always returns the value "Array" (ie, a string) when anycheckboxes are selected. That is, it is NOT a true array.
It looks like $HTTP_POST_VARS["fred"] is being assigned the value of the "fred" array in a scalar context.
Is this a bug or am I missing something ?
I'm testing with PHP 4.0.3.pl1.
Needless to say enabling "register_globals" is not an option for me (nor is it desirable practice anyway).