hercioneto

FAEPW2ExcluirPessoa

Oct 4th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pt-br">
  3.     <head>
  4.         <meta charset="utf-8"/>
  5.         <title>Pessoa</title>
  6.     </head>
  7.     <body><h1>Excluindo uma pessoa!</h1>
  8.     <?php
  9.         $id = $_GET['id'];
  10.         if (isset($_POST["excluir"])){
  11.             include "Pessoa.class.php";
  12.             $pessoa = new Pessoa();
  13.             $pessoa->excluirPessoa($id);
  14.             } else {
  15.         ?>
  16.        
  17.         <form action="" method="post">
  18.             Você tem certeza que quer excluir o registro:
  19.             <b><?php echo $id;?></b>??
  20.             <br/>
  21.             <input type="submit" name="excluir" value="Sim, Excluir"/> <br/>
  22.             Nãoooooo, errei por favor me tira daqui!
  23.             <?php } ?>
  24.             <a href="listarPessoas.php">Voltar</a>
  25.         </form>
  26.     </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment