<?php session_start("SELECAO"); session_start(); include "../classes/DB.php"; include "../classes/Campus.php"; $nome = addslashes($_POST['nome']); /* Acesso ao banco de dados */ $banco = DB::getInstance(); $conexao = $banco->ConectarDB(); $campus = new Campus(null, $nome); $resultado = $campus->Inserir($conexao); if ($resultado == true) { $_SESSION['flashMensagem'] = 'Campus cadastrado com sucesso.'; } else { $_SESSION['flashMensagem'] = 'Problemas ao efetuar o transação.'; } header('Location: ../login/menu.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="pt-br" xmlns="http://www.w3.org/1999/xhtml"> <head> <title> <?php echo $_SESSION["Gnomeprocessoseletivo"]; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <link href="../../estilo_selecao.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function delayer(){ window.location = '../login/login.php';