 <p>You can't detect the hash parameter of the URL in PHP, you would need to use JavaScript.</p> <p>You could make a jquery call to php which passes the hash data (<code>window.location.hash</code>) to a PHP script as a URL parameter and return TRUE/FALSE though.</p>