Header() substitute
<p>Hi I am new to php and want to know some alternate function for the <code>header('location:mysit.php');</code></p>

<p>I am in a scenario that I am sending the request like this:</p>

<pre><code>header('Location: http://localhost/(some external site).php'&amp;?var='test')
</code></pre>

<p>something like this but what I wanna do is that I want to send values of variables to the external site but I actually dont want that page to pop out.</p>

<p>I mean variables should be sent to some external site/page but on screen I want to be redirected to my login page. But seemingly I dont know any alternative please guide me. Thx.</p>
