Show sourcecode
The following files exists in this folder. Click to view.
dininloggningssida.php
index.html
ovn_cook1.php
ovn_cook2.php
ovn_cook3.php
ovn_cook4.php
ovn_cook5.php
ovn_cook3.php
34 lines UTF-8 Windows (CRLF)
<?php
error_reporting(-1); // Report all type of errors
ini_set('display_errors', 1); // Display all errors
ini_set('output_buffering', 0); // Do not buffer outputs, write directly
?>
<?php
session_start();
$warningMsg = "";
if (isset($_POST["password"])) {
if ($_POST["password"] === "FCB") {
$_SESSION["logIn"] = true;
header("Location: dininloggningssida.php");
} else
echo "Fel lösenord!<br>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form method="post" action="">
<input type="password" name="password" placeholder="Lösenord" required><br>
<br>
<input type="submit" name="submitted">
</form>
</body>
</html>