Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Editar Clientes</title>
- </head>
- <body>
- <?php
- include "Clientes.php";
- $cliente = new Clientes();
- $idCliente = $_GET["idCliente"];
- $dados = $cliente->listarUnico($idCliente);
- ?>
- <form action="alterarCliente.php" method="POST">
- <?php
- while ($row = $dados->fetch_assoc()) {
- //printf ("%s (%s)\n", $row["idCliente"], $row["nome"]);
- $idCliente = $row["idCliente"];
- $nome = $row["nome"];
- $dataNasc = $row["dataNascimento"];
- ?>
- <div><input type="text" name="idCliente" readonly="" value="<?php echo $idCliente ?>"></div>
- <div><input type="text" name="nome" value="<?php echo $nome ?>"></div>
- <div><input type="text" name="dataNascimento" value="<?php echo $dataNasc ?>"></div>
- <input type="submit" name="" value="Alterar">
- <?php
- }
- ?>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment