hercioneto

PW1 2019 - alterarMarca.php

Nov 5th, 2019
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 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>Alterar 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.       Atualização de Marca
  23.         <form method="post" action="updMarca.php">
  24.          
  25.                 <label for="marca">Marca</label>
  26.                 <input type="hidden" name="idMarca" value="<?php echo $marcas->getIdMarca(); ?>"/>
  27.                 <input  id="marca" name="marca" value="<?php echo $marcas->getMarca(); ?>"  placeholder="Nome da Marca">
  28.              
  29.           <button class="btn btn-primary btn-block" type="submit">Alterar</button>
  30.         </form>
  31. <?php }
  32.  
  33. ?>
  34. </body>
  35.  
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment