title: HTML form file upload does not work, $_POST does not forwards data
body: <p>Maybe it is just too early here, but can't figure out the problem... I have made several forms already, but this time for a reason I can't forward the data of my file input.</p>
  
  <p>Here is my <strong>index.php</strong> (where the form is):</p>
  
  <pre><code>&lt;form action="confirm.php" method="post" enctype="multipart/form-data"&gt;
  &lt;input type="file" name="file1"&gt;
  &lt;input type="submit" name="order"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here is my confirm.php:</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['order'])) {
  
      $file       = $_POST['file1'];
  
      echo $file;
  
  }
  ?&gt;
  </code></pre>
  
  <p>And I get the following error message:</p>
  
  <p><strong>Notice:</strong> Undefined index: file1 in /Applications/MAMP/htdocs/.../confirm.php on line 4</p>
  
  <p>I seriously don't understand what is the problem. This is a rock easy form and I think it is correct. Can you please help me with this huge issue? :DD Btw. the form proceeds <strong>all the other input data except the file.</strong></p>
  
  <p>Thanks,
  Matthew</p>