title: Get value when an html link is clicked
body: <p>Is it possible to get the value of the text in an anchor tag when the link is clicked? e.g
  if you have <code>&lt;a href="#"&gt;Tables&lt;/a&gt;</code>
  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.</p>
  
  <p>EDIT:
  This what i tried
     <code>&lt;a href="#" onclick= "&lt;?php $_SESSION[value] = "Table" ?&gt;"&gt;Table&lt;/a&gt;</code>
  But didn't get the value.
  Apologies, should have posted it earlier</p>