<!DOCTYPE html>
<html>
<head>
  <title>Login</title>
  <meta charset="utf-8">
</head>
<body>
<h1>Login</h1>
<?php
  
if(isset($_POST["reg"]) OR isset($_POST["anm"]) OR isset($_POST["loe"]) ){
    if(empty(
$_POST["name"]) OR empty($_POST["pw"])){
        echo 
"Bitte alle Eingabefelder ausf&uuml;llen!";
        include(
"formular.inc");
    }
    else {
        
$name=$_POST["name"];
        
$pw=$_POST["pw"];
        if(isset(
$_POST["reg"])){include("registrieren.inc.php");}
        elseif (isset(
$_POST["anm"])){include("anmelden.inc.php");}
        elseif (isset(
$_POST["loe"])){include("loeschen.inc.php");}
    }
  } else {
      include(
"formular.inc");
  }
?>
</body>
</html>
1