rawurlencode validation
<p>I have a feeling I am overdoing this but just to guard against xss and others...</p>

<pre><code>&lt;?php
//will pass as get parameter to a another page
header("Location: /nextpage?p=". rawurlencode(strip_tags(htmlspecialchars($_SERVER['REQUEST_URI']))));

?&gt;
</code></pre>
