title: jQuery - POST data to iframe and redirect after iframe has finish loading
body: <p>Here is what I have so far:</p>
  
  <pre><code>&lt;?php
  
  // Simulating some post values for test proposes
  $_POST['test'] = 'testing values';
  
  // POST contents (originally from a form in another page)
  $query = http_build_query( $_POST );
  
  ?&gt;
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
   &lt;meta http-equiv="content-type" content="text/html" /&gt;
   &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript"&gt;
    $(function() { $("#myiframe").load(function(){ window.location.replace('after.php'); }); });
   &lt;/script&gt;
   &lt;title&gt;iFrame Load POST&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;iframe id="myiframe" src="load.php" width="0" height="0"&gt;&lt;/iframe&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I need is to be able to send $_POST data, originally sent from a form in another page, to the iframe and redirect the page after the iframe has loaded and processed the post data.</p>
  
  <p><strong>---- EDIT ----</strong></p>
  
  <p>In fact, it doesn't need an iframe, but I still need to do a post call to load.php and wait for it to load in order to make the redirect. I cannot redirect before the load.php has finish loading the request. That's why I was using the iframe method and previously using GET instead of POST. </p>
  
  <p><strong>--------------</strong></p>
  
  <p>Can someone please help?</p>
  
  <p>Thank you!</p>