Advertisement
faizulclass

edit_task.php

Nov 13th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.85 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Edit Task</title>
  7.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  8. </head>
  9. <body>
  10. <?php
  11.  
  12. // Include header
  13. include('header.php');
  14. ?>
  15.     <div class="container">
  16.         <div class="row">
  17.             <!-- Include Left Navigation -->
  18.             <?php include('nav.php'); ?>
  19.  
  20.             <!-- Main Content Section -->
  21.             <div class="col-md-9">
  22.                 <h2>Edit Task</h2>
  23.                 <form method="POST" action="edit_task.php?task_id=<?php echo $task_id; ?>">
  24.                     <div class="form-group">
  25.                         <label for="task_name">Task Name:</label>
  26.                         <input type="text" name="task_name" id="task_name" class="form-control" value="<?php echo htmlspecialchars($task['task_name']); ?>" required>
  27.                     </div>
  28.                     <div class="form-group">
  29.                         <label for="task_description">Task Description:</label>
  30.                         <textarea name="task_description" id="task_description" class="form-control" required><?php echo htmlspecialchars($task['task_description']); ?></textarea>
  31.                     </div>
  32.                     <div class="form-group">
  33.                         <label for="due_date">Due Date:</label>
  34.                         <input type="date" name="due_date" id="due_date" class="form-control" value="<?php echo htmlspecialchars($task['due_date']); ?>" required>
  35.                     </div>
  36.                     <button type="submit" class="btn btn-primary">Update Task</button>
  37.                 </form>
  38.             </div>
  39.         </div>
  40.     </div>
  41.     <?php
  42. // Include footer
  43. include('footer.php');
  44. ?>
  45. </body>
  46. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement