title: Append dropdown list result to formData object
body: <p>In html I have a file input element within a form:</p>
  
  <pre><code>&lt;input type="file" id="file-select" name="photos" /&gt;
  </code></pre>
  
  <p>Then in javascript I append this to my formData object (formData) as follows:</p>
  
  <pre><code>formData.append('photos', file, file.name);
  </code></pre>
  
  <p>Then finally in php I retrieve the transferred file.</p>
  
  <pre><code>$fileName = $_FILES['photos']['name']; 
  </code></pre>
  
  <p>This works great.</p>
  
  <p>However I also have a dropdown list in the same form in HTML:</p>
  
  <pre><code>&lt;label&gt;Select Year to Load File to:&lt;/label&gt;
      &lt;SELECT name = "year_list"&gt;
          &lt;OPTION Value="2013"&gt;2013&lt;/OPTION&gt;
          &lt;OPTION Value="2014"&gt;2014&lt;/OPTION&gt;
          &lt;OPTION Value="2015"&gt;2015&lt;/OPTION&gt;
          &lt;OPTION Value="2016"&gt;2016&lt;/OPTION&gt;
      &lt;/SELECT&gt;
  </code></pre>
  
  <p>However it is not clear to me what the syntax I need to use to append the users selection to <code>formData</code> and also to retrieve the result in php. Can someone enlighten me as to how to do this?</p>
  
  <p><strong><em>I Do not want to use jquery</em>.</strong></p>
  
  <p>I understand for the append statement I should use the syntax:</p>
  
  <pre><code>append(DOMString name, DOMString value);
  </code></pre>
  
  <p>But then what DOMString name and DOMString value  would I use? And what would I use in <code>$_POST</code> in the php file?</p>
  
  <p>Many thanks.</p>