ok, I am having trouble with this same thing.
I have:
PHP Code:
$globals = array(
'a' => TYPE_UINT,
'b' => TYPE_UINT,
'c' => TYPE_NOHTML,
);
$vbulletin->input->clean_array_gpc('r',$globals);
(this gets accessed like: script.php?a=3&b=4&c=some+Value)
later I have
PHP Code:
$x = $vbulletin->GPC['a'];
however:
returns nothing but when we do
PHP Code:
print_r($vbulletin->GPC);
$x = $vbulletin->GPC['a'];
echo $x;
The value (3) gets returned.
this is irritating, because I can't figure out when the variable will be set and when it won't.
For
PHP Code:
$x = $vbulletin->GPC['c'];
echo $x;
Works fine. If someone could tell me what I am doing wrong I would appreciate it.