FSCash/html/new_entry.php
2026-01-04 16:59:49 +01:00

29 lines
950 B
PHP

<?php
require 'config.php';
if (!isset($_SESSION['user_id'])) {
header('Location: index.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FinanzApp - Neuer Eintrag</title>
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div class="container">
<h1>Neuer Eintrag</h1>
<form action="dashboard.php" method="post">
<input type="date" name="date" required>
<input type="text" name="category" placeholder="Kategorie">
<input type="text" name="subject" placeholder="Betreff" required>
<input type="number" step="0.01" name="amount" placeholder="Betrag" required>
<input type="text" name="payment_method" placeholder="Zahlweise">
<button type="submit">Speichern</button>
</form>
</div>
</body>
</html>