Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <title>Register a new employee</title>
  4.         <?php
  5.         if (isset($_POST['submit'])) {
  6.             print_r($_POST);
  7.             $password = md5($_POST['password']);
  8.             echo'<p>'.$password.'</p>';
  9.         }
  10.         ?>
  11.     </head>
  12.     <body>
  13.             <?php
  14.                 $db = new PDO('sqlite:login.sqlite');
  15.                 $register = 'INSERT INTO login (userid, password)
  16.                VALUES("'.$username.'","'.$password.'");';
  17.             ?>
  18.                     <form method="post" action="Register.php">
  19.             <p>Username:<br /><input type="text" name="username" /> </p>
  20.             <p>Password:<br /><input type="password" name="password" /></p>
  21.             <p><input type="submit" name="submit" value="Register" /></p>
  22.         </form>
  23.     </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement