Advertisement
Faldi767

tambah.php

May 2nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2. include "koneksi.php";
  3. $isi = $_POST["isi"];
  4. if($isi != "") {
  5.     $insert = mysqli_query($conn, "INSERT INTO berita (isi_berita) VALUES ('$isi')");
  6. }
  7. echo phpversion();
  8. ?>
  9. <html>
  10. <head>
  11. <title>a</title>
  12. </head>
  13. <body>
  14. <form method="post" name="isi" action="tambah.php">
  15. <textarea id="form" name="isi" placeholder="Isi berita." type="text"></textarea>
  16. <input type="submit" value="Isikan !">
  17. </form>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement