Updating a value in a session

From: Date: Thu, 12 Apr 2001 11:26:56 +0000
Subject: Updating a value in a session
Groups: php.general 
Request: Send a blank email to php-general+get-48285@lists.php.net to get a copy of this message
On my first page I have a form that posts a value to page2 where it gets registered in a session. Works like a charm... When I try to do this again, but send another value, the session doesn´t update the new value. Why? PAGE 1 ---> <form action="page2.php" method="post"> <input type="text" name="value" size="30"> <input type="submit" name="submit"> </form> PAGE 2 ---> <? session_start(); session_register("value"); ?> Thanks, // Tobias

« previous php.general (#48285) next »