Echo contents of href from previous page?
Posted on 2009-07-01
I am wondering if it's possible with PHP to echo the contents of an href from a previous page.
In other words if I am on page A and click on a link such as the one below:
<a href="page-b.php">Link to page B</a>
... is it possible when the person gets to page b that they see some text, "you clicked on: 'Link to page B' "
I am hoping to come up with a solution so I don't have to manually enter code into all the hrefs, rather to enter some kind of referrer code on page B as I have many A type pages / links scattered in the site that will all go to page B.