« Back to History
add_progress.php
|
20260723_000646.php
Initial Domain Snapshot
Copy Code
<?php require_once __DIR__ . '/../partials/header.php'; require_once __DIR__ . '/../core/db.php'; $msg = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $cat = $_POST['category'] ?? ''; $text = trim($_POST['text'] ?? ''); if ($cat && $text) { $stmt = $pdo->prepare(" INSERT INTO progress_board (category, item_text) VALUES (?,?) "); $stmt->execute([$cat, $text]); $msg = 'Progress updated'; } } ?> <h1>Update Progress Board</h1> <?php if ($msg): ?> <p class="notice"><?= htmlspecialchars($msg) ?></p> <?php endif; ?> <form method="post" class="card"> <label>Category</label> <select name="category" required> <option value="Completed">Completed</option> <option value="In Progress">In Progress</option> <option value="Pending">Pending</option> <option value="Blocked">Blocked</option> </select> <label>Item Text</label> <textarea name="text" required></textarea> <button class="btn">Add</button> </form> <?php require_once __DIR__ . '/../partials/footer.php';