On Tue, Aug 13, 2002 at 10:07:57AM -0700, Rasmus Lerdorf wrote:
while ( list($Key, $Val) = each($_SESSION) ) {
$$Key = $Val;
}
extract($_SESSION) is a better way to do that.
Yeah. Old habits die hard! :)
--Dan
--
PHP classes that make web design
Rasmus
OK, I think I understand the principle now, yet, when I implement id, my
app still fails.
I have register_golbals = on, BUT, I want to find a way to code that I
know will always work, regardless of register_globals or cookies, so
that I am only dependant on the trans-sid ( but If I could
Petre:
On Tue, Aug 13, 2002 at 03:18:42PM +0200, Petre Agenbag wrote:
I have register_golbals = on, BUT, I want to find a way to code that I
know will always work, regardless of register_globals or cookies, so
that I am only dependant on the trans-sid ( but If I could rule that out
too, it
No real reason to start the session in index.php. You are not registering
any session vars, nor are you accessing any.
index.php
?php
session_start();
?
form name=form1 method=post action=admin_select.php
table border=0 cellspacing=0 cellpadding=0
tr bgcolor=#CFCFCF
while ( list($Key, $Val) = each($_SESSION) ) {
$$Key = $Val;
}
extract($_SESSION) is a better way to do that.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo