header redirect with variable
<p>I've tried all sorts of different iterations of this this code to try and get the browser to show a new page.</p>

<p>If I <code>echo $location</code>; placed the value into a string and enter that directly into the header function it will work - I am sure that this will be a simple fix!</p>

<pre><code> $location = "Location: ".$urlToGoTo;
 $location = "'".trim($location)."'";
 header($location);
</code></pre>
