title: Get uploaded file name doesn't work / PHP
body: <p>I have the following PHP/ HTML code:</p>
  
  <pre><code>   &lt;?php    
          if($_SERVER['REQUEST_METHOD'] == 'POST')
          {
             $file_name = "../images/".$_FILES["file"]["name"];}
             echo $file_name; 
     ?&gt;
  
     &lt;form name="updateArticle" method="post"&gt;
     &lt;div class="custom_file_upload"&gt;
            &lt;input type="text" class="file" name="file_info" id="file_info" disabled="disabled" value="&lt;?php echo $image_name;?&gt;"&gt;
            &lt;div class="file_upload"&gt;
                  &lt;input type="file" id="file_upload" name="file" onchange="name_change()" id="file"&gt;
           &lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>The problem here is that I can't get the value of <code>$_FILES["file"]["name"]</code></p>
  
  <p>Why and how can I fix it?</p>