title: if statement returning true
body: <p>Can someone tell me why, when selecting a psd file, the if statement in the php code passes as true and echos "image/vnd.adobe.photoshop"?</p>
  
  <pre><code>&lt;?php
  
  if (isset($_POST['submit'])) {
      foreach ($_FILES["myimages"]["error"] as $key =&gt; $error) {
          $tmp_name = $_FILES["myimages"]["tmp_name"][$key];
          $name = $_FILES["myimages"]["name"][$key];
          $imagetype = $_FILES['myimages']['type'][$key];
  
          if ($imagetype == "image/jpeg" || "image/gif") {
              echo $imagetype;
          }
      }
  }
  
  ?&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form method="post" enctype="multipart/form-data" action="&lt;? echo basename(__file__); ?&gt;"&gt;
      &lt;input type="file" name="myimages[]" multiple&gt;
      &lt;input name="submit" type="submit" value="submit"&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>