Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Edit Task</title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
- </head>
- <body>
- <?php
- // Include header
- include('header.php');
- ?>
- <div class="container">
- <div class="row">
- <!-- Include Left Navigation -->
- <?php include('nav.php'); ?>
- <!-- Main Content Section -->
- <div class="col-md-9">
- <h2>Edit Task</h2>
- <form method="POST" action="edit_task.php?task_id=<?php echo $task_id; ?>">
- <div class="form-group">
- <label for="task_name">Task Name:</label>
- <input type="text" name="task_name" id="task_name" class="form-control" value="<?php echo htmlspecialchars($task['task_name']); ?>" required>
- </div>
- <div class="form-group">
- <label for="task_description">Task Description:</label>
- <textarea name="task_description" id="task_description" class="form-control" required><?php echo htmlspecialchars($task['task_description']); ?></textarea>
- </div>
- <div class="form-group">
- <label for="due_date">Due Date:</label>
- <input type="date" name="due_date" id="due_date" class="form-control" value="<?php echo htmlspecialchars($task['due_date']); ?>" required>
- </div>
- <button type="submit" class="btn btn-primary">Update Task</button>
- </form>
- </div>
- </div>
- </div>
- <?php
- // Include footer
- include('footer.php');
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement