This commit is contained in:
2019-07-04 08:13:20 +02:00
parent 39a14ad5a2
commit 54e8654512
8 changed files with 306 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
require_once(__DIR__ . "/inc/Database.php");
$name = $_POST['name'];
// Nur nicht leere Tasks sollen gespeichert werden
if (!empty($name) && !empty(trim($name))) {
$db = new Database();
$db->addTask($name);
}
header("Location: index.php");