This commit is contained in:
szabomarton 2024-10-24 11:26:03 +02:00
parent 1c13613074
commit 8f4d9a7671
2 changed files with 27 additions and 0 deletions

9
20241024/head.php Normal file
View File

@ -0,0 +1,9 @@
<?php
session_start();
if ($_SERVER["REQUEST_METHOD"]=="POST"){
$celkonyvtar = "kepek/";
$celfajl = $_FILES["kepfajl"]["name"];
var_dump($_FILES["kepfajl"]);
}

18
20241024/html.php Normal file
View File

@ -0,0 +1,18 @@
<?php
include("head.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Képek kezelése</title>
</head>
<body>
<form action="" method="POST" enctype="multipart/form-data">
Név: <input type="text" name="kepnev"> <br>
<input type="file" name="kepfajl"> <br>
<button type="submit">Feltölt</button>
</form>
</body>
</html>