Advertisement
DesenvolverBatch

editar.php

Oct 28th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.16 KB | None | 0 0
  1. <?php
  2. require_once "conexao.class.php";
  3. require_once "crud.class.php";
  4. $con = new conexao();
  5. $operacao = new crud("contatos");
  6. $id = $_GET["id"];
  7. $resultado=$operacao->selecionaID($id);
  8. $linha = mysql_fetch_array($resultado);
  9.  
  10. ?>
  11.  
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitonal//EN"
  13. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  14.  
  15. <html xmlns="http://www.w3.org/1999/xhtml" xmHang="pt" lang="pt-br">
  16.  
  17. <head>
  18.  <meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
  19.  <link rel="stylesheet" type="text/css" href="css\estilo.css"/>
  20.  <title> Agenda [EDITAR] </title>
  21.  
  22. </head>
  23.  
  24. <body>
  25.  <div id="all">
  26.     <h1> AULA 11: MYSQL + PHP + POO [EDITAR] </h1>
  27.  
  28.     <div id="cadastraContato">
  29.         <h2> EDITAR CONTATO </h2>
  30.             <form id="formCad" name="formCad" method="post" action="crud.php?id=<?php echo $id;?>&acao=atualizar">
  31.                 <p> Contato: <br> <input type="text" id="nome" name="nome" value="<?php echo $linha["nome"] ?>"/></p>
  32.                 <p> Telefone: <br> <input type="text" id="fone" name="fone" value="<?php echo $linha["fone"] ?>"/></p>
  33.                 <p> <input type="submit" value="EDITAR"/></p>
  34.             </form>
  35.     </div>
  36.  </div>
  37. </body>
  38. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement