notfound.jpg
. notfound.jpg
body.classlist.remove('disable-scroll');
, а body.classList.remove('disable-scroll');
<form action="submit.php" method="post" enctype="multipart/form-data" >
<label for="">Choose File</label>
<input type="file" name="file1" >
<input type="file" name="file2" >
<input type="submit" name="submit" value="submit" >
</form>
<form action="submit.php" method="post" enctype="multipart/form-data">
<div>
<label>Файлы<br>
<input name="file[]" type="file" multiple="multiple">
</label>
<label>
<input type="submit" value="Отправить">
</label>
</div>
</form>
<form action="submit.php" method="post" enctype="multipart/form-data" >
<label for="">Choose File</label>
<input type="file" name="file[]">
<input type="file" name="file[]">
<input type="file" name="file[]">
<input type="file" name="file[]">
<input type="file" name="file[]">
<input type="submit" name="submit" value="submit" >
</form>
var_dump($_FILES);
print_r($_FILES);
Опять же, вам нужно научиться читать этот трейс. Что он вам выводит, как можно использовать данные, которые к вам пришли.file1
, где вы его просматриваете в коде??? Правильный ответ - ни где. document.addEventListener("click",t=>{
let el = t.target;
if("img" === el.tagName.toLowerCase() && !el.classList.contains("animate")){
let src = el.getAttribute("src");
el.classList.add("animate"),
el.setAttribute("src", "image_path_gif.gif"),
setTimeout(()=>{
el.setAttribute("src", src),
el.classList.remove("animate")
}, 3000)
}
});
https://codepen.io/ProjectSoft/pen/LYBwgzZ