Hi I need to increment values in classes.
without it is simple but how can I do it in this case?->
<?
class ForwardBackward
{
function move($step)
{
$this->value=$this->value+$step;
}
function place()
{
echo "I am standig: $this->value<br>";
echo "<A href='$PHP_SELF?go=-1'> << </A> <A href='$PHP_SELF ?go=1'> >> </a>";
}
}
$a= new ForwardBackward;
$a->move($go);
$a->place();
?>
I need that when I hitting >> link $this->value increments in function move and shows correct values in function place() like 1, 2, 3, 4, etc...
thanx....