hercioneto

PW1 2019 - excluirMarca.php

Nov 5th, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 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 ($_GET) {
  18.     $id = $_GET["id"];
  19.     $marcas = new Marca();
  20.     $marcas ->buscar($id);
  21. ?>       
  22.       Excluir Marca
  23.               <form method="post" action="delMarca.php">
  24.                 <label for="marca">Marca</label>
  25.                 <input type="hidden" name="idMarca" value="<?php echo $marcas->getIdMarca(); ?>"/>
  26.                 <input  id="marca" name="marca" value="<?php echo $marcas->getMarca(); ?>" type="text" placeholder="Nome da Marca" disabled>
  27.              
  28.          
  29.           <button class="btn btn-primary btn-block" type="submit">Excluir</button>
  30.         </form>
  31. <?php }
  32.  
  33. ?>
  34.      
  35. </body>
  36.  
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment