Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. </head>
  6. <body>
  7. <?php
  8. include 'koneksi.php';
  9. $id = $_GET["id"];
  10. $sql = 'SELECT * FROM pesan where id = "'.$id.'"';
  11. $query = mysqli_query($connect, $sql);
  12. $result = mysqli_fetch_array($query);
  13. ?>
  14. <center>
  15. <form action="edit_proses.php?id=<?php echo $id ?>" method="POST">
  16. <input type="text" name="nama" value="<?php echo $result['nama'] ?>" placeholder="nama"><br>
  17. <input type="text" name="no_telp" value="<?php echo $result['no_telp'] ?>" placeholder="no telp"><br>
  18. <input type="text" name="pesan" value="<?php echo $result['pesan'] ?>" placeholder="pesan"><br>
  19. <input type="submit" name="submit" value="kirim">
  20. </form>
  21. </center>
  22. </body>
  23. </html>