Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<?php
session_start();
include ("Verbindung.inc.php");
?>
<body>
<?php
if (isset($_SESSION['benutzer']))
{ echo $_SESSION['benutzer'];
echo "eingeloggt";
}
else {
if (
isset($_POST['log']) &&
isset($_POST['pw']) &&
$_POST['log'] != '' &&
$_POST['pw'] != ''
)
{
$sql = "SELECT * FROM uzertab WHERE (uzer = '" . $_POST['log'] . "' AND pazzword = '" . $_POST['pw'] . "')";
$res = mysqli_query($verbindung, $sql);
@$datensatz = mysqli_fetch_assoc($res);
$benutzer = $_POST['log'];
$passwort = $_POST['pw'];
if($benutzer == $datensatz["uzer"] && $passwort == $datensatz["pazzword"])
{ $_SESSION['benutzer'] = $benutzer;
echo "hallo" . $_SESSION['benutzer'];
}
else { echo '<p>Falsche Daten!</p>'; }
}
else { echo "falsche Daten"; }
}
?>
<form action="<?php echo $_SERVER['script_name']; ?>" method="post">
<input type="text" size="15" maxlenght="20" name="log" value="" />
<input type="text" size="15" maxlenght="20" name="pw" value="" />
<input type="submit" value="Anmelden" />
</form>
</body>
if($benutzer == $datensatz["uzer"] && $passwort == $datensatz["pazzword"])