Kingston_Pendrive/Suli/13.b/Backend/Dolgozat_2024. 10. 21/bejelentkezes.php

10 lines
339 B
PHP
Raw Normal View History

2024-11-19 18:04:02 +00:00
<?php
session_start();
if (isset($_POST["nev"]) && $_POST["nev"] == "vasarlo" && isset($_POST["jelszo"]) && $_POST["jelszo"] == "jelszo" && !isset($_SESSION["nev"])) {
$_SESSION["nev"] = $_POST["nev"];
header(header: "Location: termekek.php");
}
else {
header(header: "Location: form.php");
}
?>