I have a form upload.php:

```
session_start();
<form action="../../banking/upload_file.php" method="post" enctype="multipart/form-data" id="bank">
    <br /><br />
    <label for="file">Select File:</label><br />
    <input type="file" name="file" id="file" /> 
    <input type="submit" name="submit" value="Upload" />
</form>

```

And I have upload\_file.php file:

```
session_start();
$filsuc = 0;
if(isset($_REQUEST['submit'])){
if ($_FILES["file"]["error"] > 0)
  {
  $fil = $_FILES["file"]["name"];
  if($_FILES["file"]["error"] == 4)
    echo "<div align=center>Please ensure that you pick a file</div>";
  elseif($_FILES["file"]["error"] == 1)
    echo "<div align=center>File is too large, maximum limit is 2MB</div>";
  else
    echo "<div align=center>Error: " . $_FILES["file"]["error"] . "</div><br />";
  }
else
  {
  $filsuc = 1;
  $fil = $_FILES["file"]["name"];
  echo "<div align=center>";
  echo "<br>Thank you, the file has been stored in: " . "upload/" . $fil;
    echo"<br><br><br><input type=button onclick='location.href=\"banking.php?fil=$fil\"' value=\"Click here to continue\">";
    echo "</div>";
    //echo "<br><br>Click <a href=\"banking.php?fil=$fil\">here</a> to continue.";

  }

      move_uploaded_FILES($_FILES["file"]["tmp_name"],
      "upload/" . $fil);
      echo "<div align=center>";
      echo " <br>OR ";
      echo"<br><br><br><input type=button onclick='location.href=\"upload.php\"' value=\"Click here to go back to start\">";
       if($filsuc == 1)
        echo "<br><br><img src=\"pics/fileuploadblur.jpg\" />";
      echo "</div>";
     // echo "<br><br><br><a href=\"upload.php\">Back to start</a> ";   

}   

```

If I comment out `if(isset($_REQUEST['submit']))` I get the error Undefined index: file. Otherwise I get a blank result page. I assume that my data is not pulling through to my upload\_file.php file. 

Any suggestions?