session - why does this not work?

From: Date: Wed, 05 Sep 2001 16:45:05 +0000
Subject: session - why does this not work?
Groups: php.general 
Request: Send a blank email to php-general+get-66073@lists.php.net to get a copy of this message
hi all, any ideas why this does not work? its just a simple script to test multi-dimensional arrays. the count value should increment...should it not? many thanks in advance! <? session_start(); session_register("count[0]"); $count[0]++; echo $count[0]."<br>&nbsp;<br>"; reset ($HTTP_SESSION_VARS); while (list($key, $value) = each ($HTTP_SESSION_VARS)) { echo "Key: $key; Value: $value<br>\n"; } ?> <html> <body> <form name=test method=post action=session_test.php> <input name=submit type=submit> </form> </body> </html>

« previous php.general (#66073) next »