Is it possible to get the value of the text in an anchor tag when the link is clicked? e.g
if you have <a href=#>Tables</a>
is it possible to retrieve the value Tables in a variable like a session variable and use it across your pages?
I have several categories of items(which are links) and i want to be able to get the value of any category clicked and use it pull products listed in that category from my database.
Thanks.
EDIT:
This what i tried
<a href=# onclick= <?php $_SESSION[value] = Table ?>>Table</a>
But didn't get the value.
Apologies, should have posted it earlier