IstominV

form.php

Jul 24th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. $task = $_POST['task'];
  5.  
  6. if (!isset($_SESSION['tasks'])) {
  7. $_SESSION['tasks'] = array();
  8. }
  9.  
  10. $_SESSION['tasks'][] = $task;
  11.  
  12. //
  13. header('Location: todos.php');
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment