redirect problem dont include whole querystring
<p>I'm trying to redirect but it dont include all in the url</p>

<pre><code>if (!empty($_POST['nazwauzytkownika']) &amp;&amp; $_POST['haslo'])
{

removed..


if (isset($_GET['redirect']))
    $redirect = $_GET['redirect'];
else 
    $redirect = 'http://*****.pl/konto/?a=powitanie';


header("Location: $redirect");

}
</code></pre>

<p>If $_GET[redirect] contains: <code>http://localhost/forum/?p=thread&amp;threadid=9</code></p>

<p>It only redirects to: <code>http://localhost/forum/?p=thread</code></p>
