note 7834 deleted from function.session-register by jimw

From: Date: Tue, 18 Dec 2001 22:21:49 +0000
Subject: note 7834 deleted from function.session-register by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23252@lists.php.net to get a copy of this message
Another solution to the problem 'how to save session vars in forms', $b will be available everywhere and can be changed everytime you change your selection. &lt;?php session_start() session_register("a"); $b=$a; session_unregister("a"); echo $b; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> <FORM METHOD="POST" ACTION="&lt;? echo $PHP_SELF;?>"> <SELECT NAME="b" onChange="submit()"> &lt;?php [your code] ?> </select> </FORM> </body> </html>

« previous php.notes (#23252) next »