title: Image isn't appearing on image upload
body: <p>I am using xampp on Windows 7. My problem is that the image isn't appearing when I clicked the submit button.</p>
  
  <p>Here's my php code:</p>
  
  <pre><code>&lt;?php
  
  $fileLocation = 'C:\xampp\htdocs\images';
  $name = $_FILES["file"]["name"];
  $tempName = $_FILES["file"]["tmp_name"];
  $size = $_FILES["file"]["size"];
  $fileType = $_FILES["file"]["type"];
  
  if ($fileType == "images/jpeg" &amp;&amp; $size &lt; 2000000)
  {
      if ($_FILES['file']['error'] &gt; 0)
      {
         echo "File error! : " . $_FILES['file']['error']. "&lt;/br&gt;";
      }
      else
      {
      echo "File Name: " . $name . "&lt;/br&gt;";
      echo "File Type: " . $fileType . "&lt;/br&gt;";
      echo "File Size: " . $size . "&lt;/br&gt;";
      }   
          if (file_exists($file_location, $name))
              {
                  echo "File already exists!" . $name . "&lt;/br&gt;";
              }
          else 
              {
                  move_uploaded_file($tempname, $fileLocation.$name);
                  echo "Stored in: " . $fileLocation . "&lt;/br&gt;";
              }
  }
   ?&gt; 
  </code></pre>
  
  <p>HTML CODE:</p>
  
  <pre><code>&lt;form enctype="multipart/form-data" action="uploadFile.php" method="POST"&gt;
  Send this file: &lt;input name="file" type="file" id='file'/&gt;
  &lt;input type="submit" value="Send File" name="submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thank you for your response.</p>