I get this error when I'm trying to call AutoPulldownMenu "Fatal error: Call to a member function on a non-object" does anyone know how to get around this?
$group = array();
$group[] = new PullDownMenu;
$group[1][0]->$name = "Boots";
$group[1][1]->$name = "English";
$group[1][0]->$value = 2;
$group[1][1]->$value = 3;
$group -> AutoPulldownMenu(eventfrm);
class PullDownMenu
{
var $value;
var $name;
function AutoPulldownMenu($formName)
{
foreach ($this->name as $key => $value)
{
$b=0;
foreach ($value as $key2 => $value2)
{
echo "group[$a][$b]=new Option(\"$value2\")\n";
$b++;
}
$a++;
}
}
}
Fatal error: Call to a member function on a non-object