G2A Many GEOs
SHARE
TWEET

form.php

choirurrizal Feb 19th, 2017 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>form</title>
  4. </head>
  5. <body>
  6. <table border='1'>
  7. <form method='POST' action=''>
  8. <tr><td>id</td><td>: <input type='text' name='q_id' value='' /></td></tr>
  9. <tr><td>username</td><td>: <input type='text' name='q_username' value='' /></td></tr>
  10. <tr><td>password</td><td>: <input type='text' name='q_password' value='' /></td></tr>
  11. <tr><td> </td><td><input type='submit' value='submit' /></td></tr>
  12. </form>
  13. </table>
  14. <?php
  15.     require_once('connect.php');
  16.     if ($_POST){
  17.         $q_id = $_POST['q_id'];
  18.         $q_username = $_POST['q_username'];
  19.         $q_password = $_POST['q_password'];
  20.         $simpan = mysql_query("INSERT INTO tabel_try values('$q_id','$q_username','$q_password')") or die("data sudah ada/gagal menyimpan");
  21.         if ($simpan){
  22.             echo "berhasil  disimpan";
  23.         }
  24.     }
  25. ?>
  26. <a href='./'>index</a> <a href='./form.php'>isi</a> <a href='./aksi.php'>aksi</a>
  27. </body>
  28. </html>
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top