title: Can't submit text input and file input from one form at the same time
body: <p>I have no problem uploading files with the file inputs, but the text inputs don't even react to my clicking. I tried deleting the file inputs, and they started functioning again. Is there any way to use them in one form at the same time?</p>
  
  <pre><code>    &lt;form class="upload-box-content popup-animation" action="uploadproject.php"
      method="POST" enctype="multipart/form-data"&gt;
          &lt;div class="text-block"&gt;
              &lt;input type="text" name="project-name" placeholder="Название проекта"&gt;
              &lt;input type="text" name="authors" placeholder="Автор(ы) проекта"&gt;
              &lt;input type="text" name="supervisor" placeholder="Куратор проекта"&gt;
              &lt;input type="text" name="faculty" placeholder="Кафедра"&gt;
          &lt;/div&gt;
  
          &lt;div class="upload-tp-block"&gt;
              &lt;input type="file" name="textfile"&gt;
              &lt;input type="file" name="ppfile"&gt;
          &lt;/div&gt;
          &lt;button type="submit" name="submit"&gt;Загрузить&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Here's the uploadproject.php code. I must say that I'm not using the data from the text inputs right now (can't even input a thing after all).</p>
  
  <pre><code>&lt;?php
  if (isset($_POST['submit'])) {
      //Getting file and all file variables
      $textfile = $_FILES['textfile'];
      $textfilename = $_FILES['textfile']['name'];
      $textfileTmpName = $_FILES['textfile']['tmp_name']; 
      $textfileSize = $_FILES['textfile']['size'];
      $textfileType = $_FILES['textfile']['type'];
      $textfileError = $_FILES['textfile']['error'];
  
      $ppfile = $_FILES['ppfile'];
      $ppfilename = $_FILES['ppfile']['name'];
      $ppfileTmpName = $_FILES['ppfile']['tmp_name']; 
      $ppfileSize = $_FILES['ppfile']['size'];
      $ppfileType = $_FILES['ppfile']['type'];
      $ppfileError = $_FILES['ppfile']['error'];
      //Getting file extensions
      $textfileExt = explode('.', $textfilename);
      $ppfileExt = explode('.', $ppfilename);
      //Make it lowercase so JPG turn into jpg, and get the extension itself
      $textfileActualExt = strtolower(end($textfileExt));
      $ppfileActualExt = strtolower(end($ppfileExt));
  
      //Allowed extensions
      $textallowed = array('docx', 'doc', 'txt', 'text', 'pdf');
      $ppallowed = array('ppt', 'pptx');
  
      if (in_array($textfileActualExt, $textallowed) &amp;&amp; 
          in_array($ppfileActualExt, $ppallowed)) {
          if ($textfileError === 0 &amp;&amp; $ppfileError === 0) {
              if ($textfileSize &lt; 20000000 &amp;&amp; $ppfileSize &lt; 20000000) {
                  $textfileDestination = 'uploads/'.$textfilename;
                  $ppfileDestination = 'uploads/'.$ppfilename;
                  move_uploaded_file($textfileTmpName, $textfileDestination);
                  move_uploaded_file($ppfileTmpName, $ppfileDestination);
                  header("Location: main.php?upload=success");    
              }
          } else {
              echo "Couldn't upload your file".$textfileError.$ppfileError;
          }
      } else {
          echo "Wrong extension boi";
      }
  
  }
  
  
  ?&gt;
  </code></pre>