|
Posted by Magnus Warker on 07/24/05 17:47
Hi Shelly,
thank you very much!
> C style:
> (1) Set a session variable with the value and read the value.
> (2) Pass the variable to the next page and use $_GET
Which variable are you talking about? There is no "next page". The problem
code is executed at once.
> OO style:
> encapsulate in the class as a variable in the class. The obect then has
> the value of "pos", and getpos and setpos are merely accessor and mutator
> methods of the class.
I think I cannot follow. Even when encapsulating the array in an additional
class, the original problem still remains.
What I already tried is to just do the while on a copy of the array, but
copying resets the position.
Thanks,
Magnus
Navigation:
[Reply to this message]
|