daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Apr 27th, 2016 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. error_reporting (E_ALL ^ E_NOTICE);
  3. session_start();
  4. ?>
  5.  
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>Untitled Document</title>
  10. </head>
  11. <body>
  12. <?php
  13.    
  14.     $form = "<form action='./multilogin.php' method='post'>
  15.     <table>
  16.     <tr>
  17.         <td>Username:</td>
  18.         <td><input type='text' name='user' /></td>
  19.     </tr>
  20.     <tr>
  21.         <td>Password:</td>
  22.         <td><input type='password' name='password' /></td>
  23.     </tr>
  24.     <tr>
  25.         <td>:</td>
  26.         <td><input type='submit' name='loginbtn' value='Login' /></td>
  27.     </tr>
  28.     </table>
  29.     </form>";
  30.    
  31.     if ($_POST['loginbtn']){
  32.         $user = $_POST['user'];
  33.         $password = $_POST['password'];
  34.        
  35.         if ($user){
  36.             if ($password){
  37.                 echo "$user - $password <hr /> $form";
  38.             }
  39.             else
  40.                 echo "You must enter your password. $form";
  41.         }
  42.         else
  43.             echo "You must enter your username. $form";
  44.     }
  45.     else
  46.         echo $form;
  47.    
  48. ?>
  49. </body>
  50. </html>
RAW Paste Data
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