Login"; exit; } $username = $_POST["username"]; $passwort = md5($_POST["password"]); $abfrage = "SELECT username, passwort FROM ".$tableLOG." WHERE username LIKE '$username' LIMIT 1"; $ergebnis = mysqli_query($verbindung, $abfrage); $row = mysqli_fetch_object($ergebnis); if($row->passwort == $passwort) { $_SESSION["username"] = $username; switch ($_POST["view"]) { case 'pocsag': header("Location: show_pocsag.php"); break; case 'zvei': header("Location: show_zvei.php"); break; case 'fms': header("Location: show_fms.php"); break; default: header("Location: show_pocsag.php"); } } else { echo "Benutzername und/oder Passwort waren falsch. Login"; } ?>