URL lost during POST
<p>What's wierd is that on one page I can echo a variable built by:</p>

<pre><code>$protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https';
$host     = $_SERVER['HTTP_HOST'];
$script   = $_SERVER['SCRIPT_NAME'];
$params   = $_SERVER['QUERY_STRING'];
$currentUrl = $protocol . '://' . $host . $script . '?' . $params;
</code></pre>

<p>Then post it to another page (I know the post works because I send other values):</p>

<pre><code>&lt;?php echo'&lt;input type="hidden" name="Refferer" value="'.$currentUrl.'"/&gt;'?&gt;
</code></pre>

<p>But when I try to use it on my other page it is now empty:</p>

<pre><code>$return = $_Post[Refferer];
header("Location: $return");
</code></pre>

<p>Anyone know what's happening to it?</p>
