Can someone tell me why I can't refer to the superglobal arrays within in a class? I was trying to do the following but kept getting "parse error, unexpected T_VARIABLE":
class Basket
{
// set class attributes
var $posType = $REQUEST['searchType'];
var $posID = $REQUEST['posID'];
// remainder of class code...
}
I thought the superglobal arrays would be accessible from anywhere within my script.
Thanks
Jake