Why this php code shows me error as
Notice: Undefined index: f in E:\xampp\htdocs\tests\file handling\file_upload1.php on line 7
Please help me out
<?php
     echo '<form action="file_upload1.php" method="POST" enctype="multipart/form-data">
         <input type="file" name="f"><br><br>
         <input type="submit" value="upload">
     </form>';
     $name=$_FILES['f']['name'];
     echo $name;    
?>
 
    