Hi there,
I am using in principal the $HTTP_xxx_VARS since quite a while and have, because it seemed the $_POST was newer and "more efficient" slightly changed that little script which is running on my site:
[PHP]if (sizeof($_POST) > 0)
$HTTP_FORM_VARS = $_POST;
elseif (sizeof($_GET) > 0)
$HTTP_FORM_VARS = $_GET;
else
$HTTP_FORM_VARS = array("");
[/PHP]
Nevertheless, it seems when used in functions, $_POST is readable without problem whereas $HTTP_FORM_VARS isn't... Perhaps it's a problem of my script? Should I use $_POST generally?
Thanks for any advice!
I am using in principal the $HTTP_xxx_VARS since quite a while and have, because it seemed the $_POST was newer and "more efficient" slightly changed that little script which is running on my site:
[PHP]if (sizeof($_POST) > 0)
$HTTP_FORM_VARS = $_POST;
elseif (sizeof($_GET) > 0)
$HTTP_FORM_VARS = $_GET;
else
$HTTP_FORM_VARS = array("");
[/PHP]
Nevertheless, it seems when used in functions, $_POST is readable without problem whereas $HTTP_FORM_VARS isn't... Perhaps it's a problem of my script? Should I use $_POST generally?
Thanks for any advice!
Comment