Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $hostname = 'localhost'; //need to change later.
- $database = 'login';
- $username = 'root';
- $password = 'mypassword:)';
- mysql_connect($hostname, $username, $password) or
- DIE('Unable to connect.');
- mysql_select_db($database) or
- DIE('Database unavailable.');
- ?>
- <html>
- <head>
- <title>Login</title>
- </head>
- <body>
- <table border="0">
- <form method="POST" action="loginproc.php">
- <tr><td>Username</td><td>:</td><td><input type="text" name="username" size="40"></td></tr>
- <tr><td>Password</td><td>:</td><td><input type="password" name="password" size="40"></td></tr>
- <tr><td> </td><td> </td><td><input type="submit" value="Login"></td></tr>
- </form>
- </table>
- </body>
- </html>
Add Comment
Please, Sign In to add comment