index.php
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="name1">
<input type="file" name="name2">
<br>
<br>
<input type="submit">
</form> </body>
</html>
upload.php
<?php
echo "<pre>";
print_r($_FILES);
echo "</pre>";
?>