Page 1 of 1
maintain state
Posted: Wed Nov 20, 2002 3:47 am
by ridwan
i need some of my variables to maintain state within a case statement is this possible ??
Posted: Wed Nov 20, 2002 4:28 am
by cybaf
the usual way of maintaining state is to use sessions or cookies.
If I'm reading your question right you are trying to save the state with some variables in a:
Code: Select all
switch($var) {
case 'something':
echo "something";
break;
}
right?
if this is the case I think that you should reconsider your solution. otherwise try to implement sessions to your code.
regards,
//Anders
i cant use sessions
Posted: Wed Nov 20, 2002 7:55 am
by ridwan
I'll just have to figue out another solution, thanx 4 ur assistance anyway
