<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML-Формы</title>
</head>
<body>
<p>Форма для отправки</p>
<form action="form.php" method="post" enctype="multipart/form-data">
<input type="file" name="filename"><br>
<input type="submit" value="Отправить">
</form>
</body>
</html>
<
video width='320' controls><source src='$name_array' type='video/mp4'></video> <html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML-Формы</title>
</head>
<body>
<p>Форма для отправки</p>
<form action="form.php" method="post" enctype="multipart/form-data">
<input type="file" name="filename"><br>
<input type="submit" value="Отправить">
</form>
<?php
$path = scandir("temp");
foreach($path as $f){
if($f != '.' and $f != '..'){
echo $f."<br>";
}
}
?>
<video src="<?= $f ?>"></video>
</body>
</html>