first commit
This commit is contained in:
10
Suli/13.b/Backend/Dolgozat_2024. 10. 21/bejelentkezes.php
Normal file
10
Suli/13.b/Backend/Dolgozat_2024. 10. 21/bejelentkezes.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?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");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user