Hi, I have some code using session variable:
<?
session_start();
echo "a:{$_SESSION['a']}";
?>
<a href="#" onClick="<? $_SESSION['a']++; ?>">add by 1</a>
$SESSION['a'] keep increment when I reload the page but that's not I want.
What should I do if I want to have $SESSION['a'] modified by pressing the link ONLY? 🙁
Is it possible to keep $_SESSION['a'] unchanged after reload?
Thanks a lot