title: how to send data via header function like post
body: <p>I try to pass data from php file to another php file with header function.  like that:  </p>
  
  <pre><code>header("location:login.php?userName=$username"); 
  </code></pre>
  
  <p>(that line appear in the first php file.)  the problem is that the data appear in the url of the second php file. like GET. I try looking for some example but without success. i looking for  how to make it like POST?</p>