Is it bad practise to write to $_POST?
<p>If this is file_1.php  </p>

<pre><code>&lt;?php

  $_POST["test_message"] = "Hello, world";    

  header("Location: http://localhost/file_2.php");
?&gt;
</code></pre>

<p>and this is file_2.php  </p>

<p></p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;?php

  if (!(isset($_POST["test_message"])))
    echo "Test message is not set";
  else
    echo $_POST["test_message"];
?&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>the output is <code>Test message is not set</code></p>

<p>Which makes me wonder if one can even write to $_POST and, having wondered that, I wonder if it is bad practise to do so. Should I just let forms with submit buttons and method=post write to $_POST for me, or is it legitimate to write to $_POST to pass data between files?</p>
