2021-09-02 08:27:03 -03:00

33 lines
931 B
PHP

<?php
session_start();
include_once("../conexao.php");
$id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT);
$result = "SELECT * FROM servicos WHERE id = '$id'";
$resultado = mysqli_query($con, $result);
$row = mysqli_fetch_assoc($resultado);
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Excluir Serviço</title>
</head>
<body>
<a href="index.php">Listar</a><br>
<h1>Excluir Serviço</h1>
<?php
if(isset($_SESSION['msg'])){
echo $_SESSION['msg'];
unset($_SESSION['msg']);
}
?>
<form method="POST" action="proc_del_ser.php">
<input type="hidden" name="id" value="<?php echo $row['id']; ?>">
<label>Serviço: </label>
<input type="text" name="nome" placeholder="Digite o serviço" value="<?php echo $row['servico']; ?>"><br><br>
<input type="submit" value="Confirma exclusão">
</form>
</body>
</html>