hercioneto

PW1 2019 - delMarca.php

Nov 5th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="br">
  3.  
  4. <head>
  5.   <meta charset="utf-8">
  6.   <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7.  
  8.   <meta name="description" content="">
  9.   <meta name="author" content="">
  10.   <title>Excluir Marca</title>
  11.  
  12. </head>
  13.  
  14. <body>
  15.           <?php
  16.            require "Marca.class.php";
  17.           if ($_POST) {
  18.               $idMarca = $_POST["idMarca"];
  19.              
  20.              
  21.               $marca = new marca();
  22. $marca->setIdMarca($idMarca);
  23. $resultado = $marca->excluir();
  24.     if ($resultado ==0) {
  25.         echo "Marca excluida com sucesso com o código: ". $marca->getIdMarca();
  26.         echo "<br/>";
  27.     }
  28.     else {
  29.         echo "Erro";
  30.     }
  31.              
  32.           }
  33.           else {
  34.               echo "Dados não preenchidos";
  35.           }
  36.           ?>
  37.      
  38. </body>
  39.  
  40. </html>
Add Comment
Please, Sign In to add comment