Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "conexao.class.php";
- require_once "crud.class.php";
- $con = new conexao();
- $operacao = new crud("contatos");
- $id = $_GET["id"];
- $resultado=$operacao->selecionaID($id);
- $linha = mysql_fetch_array($resultado);
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitonal//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xmHang="pt" lang="pt-br">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
- <link rel="stylesheet" type="text/css" href="css\estilo.css"/>
- <title> Agenda [EDITAR] </title>
- </head>
- <body>
- <div id="all">
- <h1> AULA 11: MYSQL + PHP + POO [EDITAR] </h1>
- <div id="cadastraContato">
- <h2> EDITAR CONTATO </h2>
- <form id="formCad" name="formCad" method="post" action="crud.php?id=<?php echo $id;?>&acao=atualizar">
- <p> Contato: <br> <input type="text" id="nome" name="nome" value="<?php echo $linha["nome"] ?>"/></p>
- <p> Telefone: <br> <input type="text" id="fone" name="fone" value="<?php echo $linha["fone"] ?>"/></p>
- <p> <input type="submit" value="EDITAR"/></p>
- </form>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement