<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)
}
});
numOrStr в параметре case?
Как этот (delegate) сделать на чистом JavaScript, без jQuery?
.background - блок с background.loadtransition.background {
background-image: url(path/image.jpg);
background-size: 0%;
transition: background-size .5s ease;
background-position: center;
}
.load .background {
background-size: 100%;
}
Реально адрес правильный?
это как ://домен/..pages/profile.php
Скорее всего должно быть
<a href="../pages/profile.php">