/* @var $_POST type */ $nome = addslashes(utf8_decode(filter_input(INPUT_POST, 'login'))); $senha = addslashes(utf8_decode(filter_input(INPUT_POST, 'senha'))); $email = addslashes(utf8_decode(filter_input(INPUT_POST, 'email'))); $cliente = addslashes(utf8_decode(filter_input(INPUT_POST, 'cliente'))); $tipoAcesso = addslashes(utf8_decode(filter_input(INPUT_POST, 'tipoAcesso'))); $dataCadastro = addslashes(utf8_decode(filter_input(INPUT_POST, 'dataCadastro'))); $dataAlteracao = addslashes(utf8_decode(filter_input(INPUT_POST, 'dataAlteracao'))); $statusUsuario = addslashes(utf8_decode(filter_input(INPUT_POST, 'statusUsuario'))); $novoUsuario = new classeUsuario(); $novoUsuario->setNome($nome); $novoUsuario->setSenha($senha); $novoUsuario->setEmail($email); $novoUsuario->setCodCliente($cliente); $novoUsuario->setCodTipoAcesso($tipoAcesso); $novoUsuario->setDataCadastro($dataCadastro); $novoUsuario->setDataAlteracao($dataAlteracao); $novoUsuario->setCodStatusUsuario($statusUsuario); if ($novoUsuario->inserirUsuario()) { header("Location: primeiroAcesso.php?form=true&acesso=sucesso"); } else { header("Location: primeiroAcesso.php?form=false"); } } ?> <!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>MAP TI - Primeiro Acesso</title>