title: Is it possible to send additional parameters when uploading a file in PHP?
body: <p>I am initializing file upload using the following HTML:</p>
  
  <pre><code>&lt;form enctype="multipart/form-data" action="PHPScripts/upload.php" method="POST"&gt;
      &lt;input type="file" id="browseButton" name="image" onchange="this.form.submit();" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Upload.php script looks like this: </p>
  
  <pre><code>&lt;?php
  $file = $_FILES["image"];
  $filepath = $file["name"];
  $filetmp = $file["tmp_name"];
  $filesize = $file["size"];
  $filename = basename($filepath);
  $filetype = substr($filename, strrpos($filename, ".") + 1);
  ...
  ?&gt;
  </code></pre>
  
  <p>I need to pass one more parameter to my php script, but I don't know how. HTTP method is POST (as can be seen in the code above), but where should I put the parameter? Is that even possible? Thanks for clarifying this to me. </p>