koolaid
02-21-2008, 08:27 PM
Hello,
I'm trying to pass a session variable to a while that is already running (it's holding a connection open), so when a user clicks a button, the session var is set..
How it looks like:
while
if ($_SESSION['var'])
// do something
User clicks the button:
set $_SESSION['var'];
The problem is, I found out that session variables that are defined AFTER the while has been activated can no longer be passed through... So basically I need to pass variables to a while. I don't mind if it involves some other methods...
Help would be GREATLY appreciated!
Thanks.
I'm trying to pass a session variable to a while that is already running (it's holding a connection open), so when a user clicks a button, the session var is set..
How it looks like:
while
if ($_SESSION['var'])
// do something
User clicks the button:
set $_SESSION['var'];
The problem is, I found out that session variables that are defined AFTER the while has been activated can no longer be passed through... So basically I need to pass variables to a while. I don't mind if it involves some other methods...
Help would be GREATLY appreciated!
Thanks.