If you are like me, you probably keep a "Validation" button somewhere to hand. Wherever it is, it will probably look something like this:
<a href="http://validator.w3.org/check/referer" title="Validation tests" >Validation Tests</a>
This method is fine, until you get the "No Referrer header found!" page, which is very annoying. A simple resolution to this is to use the <?php echo $_SERVER['REQUEST_URI']; ?> code. This helpful bit of code will insert the address of the page the user is currently on, so if you were on "http://test.com/pages/test/" the code would copy the "/pages/test/". To use it in the code:
<a href="http://validator.w3.org/check?uri=http://yoursite.com<?php echo $_SERVER['REQUEST_URI']; ?>" title="Validation tests">Validation Tests</a>