title: Upload image and mp3 in same form, but mp3 did not get uploaded
body: <p>i'm trying upload image and mp3 in the same form but image is uploaded and mp3 is not.
  this is my form</p>
  
  <pre><code> &lt;form action="upload.php"
   enctype="multipart/form-data" method="post"&gt;
   &lt;p&gt;
   Please select image&lt;br&gt;
   &lt;input type="file" name="image" size="40"&gt;
   &lt;/p&gt;
   &lt;p&gt;
   Please select audio&lt;br&gt;
   &lt;input type="file" name="audio" size="40"&gt;
   &lt;/p&gt;
  </code></pre>
  
  <p>and this is my upload.php</p>
  
  <pre><code>// checking image
  if (($_FILES["image"]["type"] == "image/gif")
  or ($_FILES["image"]["type"] == "image/jpeg")
  or ($_FILES["image"]["type"] == "image/pjpeg")
  or ($_FILES["image"]["type"] == "image/png"))
  {
      if ($_FILES["image"]["error"] == 0)
      {
          move_uploaded_file($_FILES["image"]["tmp_name"],
          "upload/".$_FILES["image"]["name"]);
  
      }
      else
      {
          echo "image upload failed";
      }
  }
  else
  {
      echo "file is not supported image";
  
  }
  
  // checking mp3
  if (substr($_FILES["audio"]["name"],-3) == "mp3")
  {
      if ($_FILES["audio"]["error"] == 0)
      {
          move_uploaded_file($_FILES["audio"]["tmp_name"],
          "upload/".$_FILES["audio"]["name"]);
      }
      else
      {
          echo "audio upload failed";
      }
  }
  else
  {
      echo "file is not supported audio";
  
  }
  </code></pre>
  
  <p>now, image get's uploaded and moved to ./upload but on mp3 it echoes "audio upload failed".
  Don't get it</p>