hercioneto

Editar Clientes

May 20th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>Editar Clientes</title>
  6. </head>
  7. <body>
  8. <?php
  9. include "Clientes.php";
  10. $cliente = new Clientes();
  11. $idCliente = $_GET["idCliente"];
  12. $dados = $cliente->listarUnico($idCliente);
  13. ?>
  14. <form action="alterarCliente.php" method="POST">
  15. <?php
  16. while ($row = $dados->fetch_assoc()) {
  17.         //printf ("%s (%s)\n", $row["idCliente"], $row["nome"]);
  18.         $idCliente = $row["idCliente"];
  19.         $nome = $row["nome"];
  20.         $dataNasc = $row["dataNascimento"];
  21. ?>
  22.  
  23.     <div><input type="text" name="idCliente" readonly="" value="<?php echo $idCliente ?>"></div>
  24.     <div><input type="text" name="nome"  value="<?php echo $nome ?>"></div>
  25.     <div><input type="text" name="dataNascimento" value="<?php echo $dataNasc ?>"></div>
  26.     <input type="submit" name="" value="Alterar">
  27.  
  28. <?php        
  29.     }
  30.  
  31.  
  32. ?>
  33. </form>
  34. </body>
  35. </html>
Add Comment
Please, Sign In to add comment