title: Undefined index on file upload
body: <p>I have next code : </p>
  
  <p>which works great on other pages. But not on this </p>
  
  <pre><code>&lt;tr&gt;&lt;td&gt;Upload Terms and Condition &lt;br /&gt;(pdf, doc, docx, xls, txt)&lt;/td&gt;
      &lt;td&gt;&lt;input type = "file" name = "termspdf" id = "termspdf"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>and next code is :</p>
  
  <pre><code>// PDF SECTION ...
  if (is_uploaded_file($_FILES['termspdf']['tmp_name'])) {
      $pdf = $_FILES["termspdf"]["name"];
      $pdfSize = $_FILES["termspdf"]["size"];
  
  
      if ($_FILES['termspdf']['type'] != "application/pdf") {
          echo $lang['var464'];
      } else {
          $path="images/products/pdf/";
          $newPdf = time().".pdf";
          $newPDFPath=$path.$newPdf;
  
          $result = move_uploaded_file($_FILES['termspdf']['tmp_name'], $newPDFPath);
          chmod($newPDFPath, 0777);
      }
  }
  
  
  
  
  Array
  (
  )
  </code></pre>
  
  <blockquote>
    <p>Notice: Undefined index: termspdf in
    /home/user678/public_html/users/_edit.php on line 25</p>
  </blockquote>
  
  <p>I get any result. What can be wrong?</p>
  
  <pre><code>print "&lt;pre&gt;";
      print_r($_FILES);
      print "&lt;/pre&gt;"; 
  </code></pre>
  
  <p>nothing ..</p>
  
  <p>Thank you</p>