<?php require_once '../banco_de_dados/bancoitens.php'; require_once '../classes/itens.php'; $bi = new BancoItens(); $it = new Itens(); if (isset($_POST['salvar'])) { $nome = $_POST['nome']; $valor = $_POST['valor']; $descricao = $_POST['descricao']; $it->setNomeItens($nome); $it->setValorItens($valor); $it->setDescricaoItens($descricao); $bi->inseriritens($it); echo "<script type='text/javascript' language='javascript'> \n alert ('Item cadastrado com sucesso!!');\n window.location.href='../telas/telaitens.php';\n </script>"; } ?> <html> <head> <meta charset='UTF-8'> <title>Cadastro de itens</title> <link rel="stylesheet" href="../css/bootstrap.css"/> <link rel="stylesheet" href="../css/bootstrap-theme.css"/> <script src="../js/bootstrap.js"></script> </head> <body> <div class="table-responsive" align="center"> <form method="post" action=""> <h2>Cadastrar Item</h2> <div class="input-group">