Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting (E_ALL ^ E_NOTICE);
- session_start();
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- $form = "<form action='./multilogin.php' method='post'>
- <table>
- <tr>
- <td>Username:</td>
- <td><input type='text' name='user' /></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input type='password' name='password' /></td>
- </tr>
- <tr>
- <td>:</td>
- <td><input type='submit' name='loginbtn' value='Login' /></td>
- </tr>
- </table>
- </form>";
- if ($_POST['loginbtn']){
- $user = $_POST['user'];
- $password = $_POST['password'];
- if ($user){
- if ($password){
- echo "$user - $password <hr /> $form";
- }
- else
- echo "You must enter your password. $form";
- }
- else
- echo "You must enter your username. $form";
- }
- else
- echo $form;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement