title: Form file field value not posting to $_POST
body: <p>I'm doing some tests with forms and ran into a snag, I have a very simple test script that works, but the problem is that my FILE field in the form is not getting submitted to the $_POST array for some reason, if I take out encode="multipart/form-data" it does, otherwise I just get the other fields. Here is the script:</p>
  
  <pre><code>&lt;?PHP
  print_r($_POST);
  echo"&lt;br&gt;";
  print_r($_FILES);
  
  $name = $_FILES["img1"]["name"];
  $tmp_name = $_FILES["img1"]["tmp_name"];
  $uploads_dir = "uploads";
  echo "&lt;br&gt;TEMP NAME:&lt;/b&gt;";
  echo $tmp_name;
  move_uploaded_file($tmp_name, "$uploads_dir/$name");
  ?&gt;
  
  &lt;html&gt;
  &lt;body&gt;
  &lt;br&gt;&lt;br&gt;
  -------------------------
  &lt;form name="test" id="test" action="index.php" method="post" enctype="multipart/form-data"&gt;
  
  &lt;label&gt;Name&lt;/label&gt;
  &lt;input type="text" name="title" id="title"&gt;
  &lt;br&gt;
  &lt;label&gt;File&lt;/label&gt;
  &lt;input type="file" name="img1" id="img1" size="40"&gt;
  &lt;br&gt;
  &lt;input type="submit" value="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The output is:</p>
  
  <pre><code>POST ARRAY: Array ( [title] =&gt; some title )
  FIELS ARRAY: Array ( [img1] =&gt; Array ( [name] =&gt; chicken.jpg [type] =&gt; image/jpeg [tmp_name] =&gt; /tmp/phpcrBLw9 [error] =&gt; 0 [size] =&gt; 30940 ) )
  TEMP NAME:/tmp/phpcrBLw9 
  </code></pre>
  
  <p>As you can see, the POST only has the title, not the file name, I need it to have both for programming reasons, is there a way to do that without having to cheat / have hidden fields or edited values manually?</p>