I have the same problem again, any tested objects I have written brought me the same results, every time, the parser worries about "uncomplete objects", and told me to include the class definition before session start, well, this was what I've tried all the time, and here is a piece of code, which doesn't run:
<?
class test
{
function setTest ($number)
{
$this->number = $number;
}
var $number;
}
$mytest = new test;
$mytest->setTest (400);
session_register ("mytest");
echo "<a href='test3.php'>Next Page</a>";
?>
And the next page looks like the following:
<?
class test
{
function setTest ($number)
{
$this->number = $number;
}
var $number;
}
session_start ();
echo "NUMBER:";
echo $mytest->number;
?>
Perhaps somebody can help me
THX