php reload with all data
<p>I need to reload the page with all the post data that gets sent to it, the post data is a array also which might make it a bit harder.</p>

<p>So this is the code that I use to reload the page. (this is the exact same page, so reloading the page) </p>

<pre><code>//there is no data so lets do something as the ajax call is waiting for data
        header('Location: checkchat.php, true, 302);
        exit;
</code></pre>

<p>I need it to submit the array to the the same page, through ether <code>POST</code>, or <code>GET</code> and also, I <strong>cant</strong> print, any data out or my ajax request will return the data (which will be anything that the gets printed on the page).</p>

<p>The Array can have 200 values in it so I cant send it through <code>GET</code> well i could but it will unreasonable.</p>

<p>So the array is something like so...</p>

<p>array name = <strong>Friendslist</strong></p>

<ul>
<li>fredy@example.com</li>
<li>bob@example.com </li>
<li>jimmy@example.com </li>
<li>test@example.com</li>
</ul>
