title: Get posted filename in PHP
body: <p>I am getting the values of posted data with php.</p>
  
  <p>I am using:</p>
  
  <pre><code>if (isset($_POST['fieldname'])) {
  $field1 = $_POST['fieldname'];
  }
  </code></pre>
  
  <p>This works correctly and I can return the value using:</p>
  
  <pre><code>echo $field1;
  </code></pre>
  
  <p>My problem is that there is a field called ul_image which contains the name of an image and it's for upload.</p>
  
  <p>I've tried:</p>
  
  <pre><code>if (isset($_POST['ul_image'])) {
  $field2 = $_POST['ul_image'];
  }
  
  echo $field2;
  </code></pre>
  
  <p>but this returns nothing.</p>
  
  <p>I'm out of ideas so does anyone have any suggestions?</p>