-----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-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php