I have a page with a bunch of anchor tags. eg:
<a name="tag1">
some text
<a name="tag2">
some more text
(In case you didn't know what anchor tags looked like!)
What I want to do is write to the database when a particular anchor is requested. So for
<a href="page.php#tag1">
We just go to the tag. But for
<a href="page.php#tag2">
We write to the database as well.
How do I do this? The # in the url doesn't seem to be available to $REQUEST and suchlike, nor to the $SERVER variables.
Any ideas?