title: PHP file upload - dropdown subfolder selection
body: <p>I'm building a simple upload portal for my office. I have successfully coded it to pass the uploaded items into a folder named /uploads, however I would like to add a dropdown to select between a number of subfolders so people can better organize the stuff that is in there.</p>
  
  <p>This is my HTML</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;form action="upload.php" method="post" enctype="multipart/form-data"&gt;
              &lt;label for="file"&gt;Filename:&lt;/label&gt;
              &lt;input type="file" name="file" id="file"&gt;&lt;br&gt;
              &lt;select name="Folder"&gt;
                  &lt;option value="OurPhoto"&gt;Our Photos&lt;/option&gt;
                  &lt;option value="StockPhoto"&gt;Stock Photos&lt;/option&gt;
                  &lt;option value="Video"&gt;Videos&lt;/option&gt;
                  &lt;option value="Document"&gt;Documents&lt;/option&gt;
                  &lt;option value="Other"&gt;Other&lt;/option&gt;
              &lt;/select&gt;
              &lt;input type="submit" name="submit" value="Submit"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is my PHP for upload.php</p>
  
  <pre><code>if ($_FILES["file"]["error"] &gt; 0) {
      echo "Return Code: " . $_FILES["file"]["error"] . "&lt;br&gt;";
  }
  else {
      echo "Upload: " . $_FILES["file"]["name"] . "&lt;br&gt;";
      echo "Type: " . $_FILES["file"]["type"] . "&lt;br&gt;";
      echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB&lt;br&gt;";
      echo "Temp file: " . $_FILES["file"]["tmp_name"] . "&lt;br&gt;";
  
      if (file_exists("upload/" . $_FILES["file"]["name"])) {
          echo $_FILES["file"]["name"] . " already exists. ";
      }
      else {
          move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);
          echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
      }
  }
  </code></pre>
  
  <p>My subfolders are named MCPhoto, StockPhoto, Video, Documents and Other.
  My PHP knowledge is kind of weak so I don't really know where to go from here..</p>