Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_GET['nome']) && $_GET['nome'] != ''){
- $tarefa = array();
- $tarefa['nome'] = $_GET['nome'];
- if(isset($_GET['descricao'])){
- $tarefa['descricao'] = $_GET['descricao'];
- }else{
- $tarefa['descricao'] = '';
- }
- if(isset($_GET['prazo'])){
- $tarefa['prazo'] = $_GET['prazo'];
- }else{
- $tarefa['prazo'] = '';
- }
- $tarefa['prioridade'] = $_GET['prioridade'];
- if(isset($_GET['concluida'])){
- $tarefa['concluida'] = $_GET['concluida'];
- }else{
- $tarefa['concluida'] = '';
- }
- $_SESSION['lista_tarefas'][] = $tarefa;
- }
- include "template.php";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement