retrieve window.location.hash url in php
<p>I am using a jquery tabbed interface here <a href="http://www.imashdigital.com/#2" rel="nofollow">http://www.imashdigital.com/#2</a> and would like to return the tab number in php.</p>

<p>Ideally I would like to run a javascript function (on a timer) that continually updates a global <strong>php variable</strong> with the current tab.</p>

<p>Based on this php value, 1 through to 4, I will then load a different sidebar.</p>

<p>I would be grateful for any help and some code examples as I am a novice.</p>

<p>Kind regards</p>

<p>Jonathan</p>
