aktuelle.kurse/m133/Modul_Unterlagen_133_VOR/01-Modulinhalte/01 WEB Architektur/02 Anmeldung Architektur/control/anmeldung.php

30 lines
806 B
PHP
Raw Normal View History

2022-02-24 09:37:43 +01:00
<?php
session_start();
$_SESSION['benutzer'] = $_REQUEST['benutzer'];
$_SESSION['password'] = $_REQUEST['password'];
// Pr<50>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;
?>