Posted by Mark Evans on 09/20/05 16:47
> how to do it ?
http://php.grn.es/manual/en/ref.session.php
Hint: Look at example 1 where it says
<?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo $_SESSION['count'];
?>
<a href="test6.php?<?php echo(SID)?>">link</a>
Also take a look at
http://php.grn.es/manual/en/function.session-register.php
Note: the part about not using session_register()
Regards
Mark
[Back to original message]
|