I tried running this code
<form action = "upload.php" method="POST enctype="multipart/form-data">
<input type="file" name="file"><BR><BR>
<input type="submit" name = "Submit" value ="Submit">
</form>
<?php
echo $name = $_FILES;
$size = $_FILES;
$type = $_FILES;
$tmp_name = $_FILES;
?>
but im having these errors
Notice: Undefined index: file in C:\xampp\htdocs\series\fileupload\upload.php on line 2
Notice: Undefined index: file in C:\xampp\htdocs\series\fileupload\upload.php on line 3
Notice: Undefined index: file in C:\xampp\htdocs\series\fileupload\upload.php on line 4
Notice: Undefined index: file in C:\xampp\htdocs\series\fileupload\upload.php on line 5
do you knwo whats the problem here?
I was told to use isset but im not really sure of how to code it.