Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Register a new employee</title>
- <?php
- if (isset($_POST['submit'])) {
- print_r($_POST);
- $password = md5($_POST['password']);
- echo'<p>'.$password.'</p>';
- }
- ?>
- </head>
- <body>
- <?php
- $db = new PDO('sqlite:login.sqlite');
- $register = 'INSERT INTO login (userid, password)
- VALUES("'.$username.'","'.$password.'");';
- ?>
- <form method="post" action="Register.php">
- <p>Username:<br /><input type="text" name="username" /> </p>
- <p>Password:<br /><input type="password" name="password" /></p>
- <p><input type="submit" name="submit" value="Register" /></p>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement