Re: Sessions Help

From: Date: Sun, 03 Mar 2002 18:35:30 +0000
Subject: Re: Sessions Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86993@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * and then Ramesh Nagendra Pillai declared.... > I am very new to PHP develope Can any one please help > me to use session variables. > I am able to register an variable. > My probelm is how to get the values of that registered > variable in the successive pages? Firstly, read up on them in the manual. There's loads of good stuff there. Here's the quick answer to your question though. page-one.php <? session_start(); session_register("a_var"); $a_var="a value"; ?> page-two.php <? session_start(); print($a_var); ?> - -- - ----------------------------------------------------------- www.explodingnet.com | Projects, Forums and + Articles for website owners - -- Nick Wilson -- | and designers. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8gmzyHpvrrTa6L5oRAskdAJ9zMCCJuMSSe97qfj0RbbUUOdq3hQCePJw9 pb/ZAO3x1aztJa9zyowCd0I= =Ct9D -----END PGP SIGNATURE-----

« previous php.general (#86993) next »