<!DOCTYPE html>
<html lang="hu">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bejelentkezés</title>
</head>
<body>
    <?php 
        session_start();
        if (isset($_SESSION["nev"])) {
            header(header: "Location: termekek.php");
        }
    ?>
    <form action="bejelentkezes.php" method="POST">
        <label for="nev">Név: </label><input type="text" name="nev" id="nev"><br>
        <label for="jelszo">Jelszó: </label><input type="password" name="jelszo" id="jelszo"><br>
        <button type="submit">Bejelentkezés</button>
    </form>
</body>
</html>