help: SESSION management with php4-03b for win98
| From: | x | Date: | Mon, 21 Feb 2000 02:15:53 +0000 |
| Subject: | help: SESSION management with php4-03b for win98 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10547@lists.php.net to get a copy of this message | ||
Thanks for your reply.
I look at hph manual about "session handling functions".
But not succeed to transmit variables.
example:
start.php
=======
<? php
$page=2;
session_register("page");
session_start();
?>
<html>
<body>
<a href="nextpage.php"> Click here </a>
/* or
<a href="nextpage.php?<?=SID?>"> Click here </a>
*/
</body>
</html>
nextpage.php
===========
<?php>
if (!$page) $page = 1;
echo "page number: "."$page";
?>
solution
=======
page number: 1 /* not 2
Please help .
thanks
xww