Hi everyone. A short question: Is it possible tio set an session variable from an <a href> tag?
<? $stuff=$_GET['stuff']; session_start(); $_SESSION['stuff']=$stuff; ?>
Is that what you mean?
I i got a session variable ($stuff), and it current value is 1.
If the user clicks on <a href="index.php">test link 2</a> i want to change the value in the session variable to 2.
Thnx for replying.🙂
<a href="index.php?stuff=2">test link 2</a>
then in index.php
<? session_start(); $_SESSION['stuff']=$_GET['stuff']; ?>
HTH Rob
Withtout displaying the ?stuff=2 in the adress?