title: Image - Upload not responding, no access to $_FILES
body: <p>Here is my file-upload script, and i am getting the following error</p>
  
  <pre><code>Notice: Undefined index: fupload in C:\Users\Tuskar\Desktop\Projekt\htdocs\Project IT-Space\Profile\edit_profile_parse.php on line 8
  </code></pre>
  
  <p>But according there should not error, because i identified the index. It seems i don't have access to the $_FILES array, because before i got this error  ive been getting other similar errors or the programm completely passes the if and goes directly to the else (file not chosen)</p>
  
  <p>I know the script is primitive and includes almost no security, but i just want it to work first before i add other features like max file size or file restriction ... :(</p>
  
  <p>Here is the code i am using.</p>
  
  <pre><code>Upload Picture
  &lt;form action="edit_profile_parse.php" method="get" enctype="multipart/form-data" &gt;
  &lt;input type="hidden" name="MAX_FILE_SIZE" value="999999999"&gt; &lt;/input&gt;
  &lt;input type="file" name="fupload"&gt; &lt;/input&gt;
  &lt;input type="submit" name="submit" value="Upload"&gt; &lt;/input&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here is the php that handles the form </p>
  
  <pre><code>if (isset( $_GET['submit'] ))
  {
  if (isset($_FILES['fupload'] ))
  {
  echo "name: ".$_FILES['fupload']['name']." &lt;br&gt; ";
  echo "size: ".$_FILES['fupload']['sizw']." &lt;br&gt; ";
  echo "type: ".$_FILES['fupload']['type']." &lt;br&gt; ";
  
      if ($_FILES['fupload']['type'] == "image/gif")
      {
          $source = $_FILES['fupload']['tmp_name'];
          $target = "images/" .$_FILES['fupload']['name'];
          move_uploaded_file($source, $target) or die ("Error: " .mysql_error());
          $size = getImageSize($target);
  
          $imgstr = "&lt;img src=\" '".$target."' \"&gt;";
          echo $imgstr;
      }
      else
      {
      echo "Problem uploading the file ... ";
      }
  }   
  else
  {
  echo "No file chosen !! ";
  }
  }
  else
  {
  echo "Button not clicked ";
  }
  </code></pre>