PHP: check from which page the link is directed
<p>lets say i have a page <code>hit.php</code> in my website and the link is to this page is available on every\many pages in the website..</p>

<p>lets say i click <code>&lt;a href"hit.php"&gt;HIT&lt;/a&gt;</code> from any page.....</p>

<p>is there a way when <code>hit.php</code> is loaded i could know that the page from which this page was..</p>

<p>meaning if i click the link to <code>hit.php</code> from 'index.php' i could check loading <code>hit.php</code> that the user is navigating here from 'index.php' or any other page...</p>

<p>i know this i could establish in site by passing variables in URL like 'hit.php?pagename=index' but is there another way</p>

<p>p.s i know its crazy but still :)</p>
