title: PHP input file error, echo file name with Post method
body: <p>I'm trying to take posted input file name, I'm not uploading anywhere.</p>
  
  <p>I just need the name of posted filename so I'm trying this code;</p>
  
  <pre><code>&lt;form method="post" enctype="multipart/form-data" role="form"&gt;
      &lt;input type="file" id="file" name="file"&gt;
      &lt;input type="submit" name="submit" value="Submit Form"&gt;
  &lt;/form&gt;
  
  &lt;?php
  if(isset($_POST['submit'])){
      echo $_FILES['file'];           
  }
  ?&gt;
  </code></pre>
  
  <p>If I change <code>enctype="multipart/form-data"</code> into form tag, it's ok, but I need this tag.</p>