Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $task = $_POST['task'];
- if (!isset($_SESSION['tasks'])) {
- $_SESSION['tasks'] = array();
- }
- $_SESSION['tasks'][] = $task;
- //
- header('Location: todos.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment