Extracting anchor from url
Posted: Thu Jun 23, 2005 9:10 am
I have a page with a bunch of anchor tags. eg:
(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
We just go to the tag. But for
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?
Code: Select all
<a name="e;tag1"e;>
some text
<a name="e;tag2"e;>
some more textWhat I want to do is write to the database when a particular anchor is requested. So for
Code: Select all
<a href="e;page.php#tag1"e;>Code: Select all
<a href="e;page.php#tag2"e;>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?