|
Posted by Erwin Moller on 04/25/06 17:55
leo wrote:
> When i echo the $catid, it returns null. $catid is there, confirmed by
> command prompt and "select table from database".
>
> Is php needed to set anything or security issue such that $HTTP_GET_VAR
> associative array can't be retrieved?
>
> Thanks a lot
>
>
> $catid = $HTTP_GET_VAR['catid'];
>
> echo "catid at showcat: $catid";
Yes, it is in php5.
http://nl2.php.net/manual/en/ini.core.php#ini.register-long-arrays
FROM MANUAL:
-------------------------
register_long_arrays boolean
Tells PHP whether or not to register the deprecated long $HTTP_*_VARS
type predefined variables. When On (default), long predefined PHP variables
like $HTTP_GET_VARS will be defined. If you're not using them, it's
recommended to turn them off, for performance reasons. Instead, use the
superglobal arrays, like $_GET.
This directive became available in PHP 5.0.0.
-------------------------
So use $_GET[] or $_POST[] instead of the old $HTTP_GET_VARS, or change this
in your ini-settings.
My advise would be to use $_GET[] instead.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|