title: POST in PHP AND redirect the user to that page?
body: <p>I'm a bit confused. How do I POST data to a URL and then redirect the user's browser to that location - all in one operation?</p>
  
  <p>I see </p>
  
  <pre><code>header('Location: page.php?' . http_build_query($_POST)); 
  </code></pre>
  
  <p>but that is GET, not POST and ppl think thats really bad practice - <a href="https://stackoverflow.com/questions/311242/php-open-another-webpage-with-post-data/311269#311269">PHP open another webpage with POST data</a> (why?)</p>
  
  <p>My kludgy workflow involves setting up a form and then submitting it via javascript - anything has to be better than that...</p>
  
  <p>I think I can do a set of header() stmts but this action happens for the user way after the page has been geenrated, so i dont think that would work</p>