aktuelle.kurse/m133/Modul_Unterlagen_133_VOR/01-Modulinhalte/01 WEB Architektur/02 Anmeldung Architektur/control/anmeldung.php
Harald G. Mueller cdff097ef7 muh
2022-03-17 11:19:26 +01:00

30 lines
806 B
PHP

<?php
session_start();
$_SESSION['benutzer'] = $_REQUEST['benutzer'];
$_SESSION['password'] = $_REQUEST['password'];
// Prüfe Inhalt von Eingabe
if ((strlen($_SESSION['benutzer'])>0)and (strlen($_SESSION['password'])>0))
{
$html_Output = "<html><head><title>Anmeldung</title></head>";
$html_Output .= "<body>";
$html_Output .= "Hallo, ".$_SESSION["benutzer"]." die anmeldung war erfolgreich.";
$html_Output .= "<a href=../control/abmeldung.php>abmelden</a>";
$html_Output .= "</body></html>";
}
else
{
$html_Output = "<html><head><title>Anmeldung</title></head>";
$html_Output .= "<body>";
$html_Output .= "Hallo, die Anmeldung war nicht erfolgreich.";
$html_Output .= "</body></html>";
}
echo $html_Output;
?>