<?php
session_start(); //Munkamenet-kezeléshez kell
// Ha rányomunk az űrlapot elküldő gombra...
if ($_POST["submit"] == "Be! A Vörös Hadseregbe!") {
//...ellenőrizzük, hogy jó-e a jelszó
if ($_POST["pw"] == "Raszputyin") {
$_SESSION["loggedin"] = true;
} else {
$_SESSION["loggedin"] = false;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
<?php
if ($_SESSION["loggedin"] == false) {
?>
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
<?php
} else {
?>
<p style="color:red;">Sikeres bejelentkezés! Üdvözlünk Elvtárs!</p>
<?php
}
?>
</body>
</html>
- Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Warning: Undefined array key "submit" in /in/07INX on line 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
Warning: Undefined array key "loggedin" in /in/07INX on line 23
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
</body>
</html>
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
- Notice: Undefined index: submit in /in/07INX on line 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
Notice: Undefined index: loggedin in /in/07INX on line 23
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
</body>
</html>
- Output for 7.3.32 - 7.3.33
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
</body>
</html>
- Output for 5.2.3 - 5.2.17
- Notice: Undefined index: submit in /in/07INX on line 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
Notice: Undefined index: loggedin in /in/07INX on line 23
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
</body>
</html>
- Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
- Warning: session_start(): Cannot send session cookie - headers already sent in /in/07INX on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/07INX:2) in /in/07INX on line 2
Notice: Undefined index: submit in /in/07INX on line 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
Notice: Undefined index: loggedin in /in/07INX on line 23
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
</body>
</html>
- Output for 4.3.0 - 4.3.1
- Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /in/07INX on line 2
Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /in/07INX:2) in /in/07INX on line 2
Notice: Undefined index: submit in /in/07INX on line 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Jelszópélda</title>
</head>
<body>
<div id="container" style="text-align: center;">
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Red_army_conscript_hat_insignia.jpg/150px-Red_army_conscript_hat_insignia.jpg" alt="Vörös Hadsereg" /></p>
Notice: Undefined index: loggedin in /in/07INX on line 23
<form id="myform" action="" method="post">
<p>
<label for="pw">Jelszó</label>:
<input type="password" name="pw" id="pw" />
</p>
<p>
<input style="color:red;" type="submit" name="submit" id="submit"value="Be! A Vörös Hadseregbe!" />
</p>
</form>
</body>
</html>
preferences:
222.19 ms | 404 KiB | 309 Q