Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Login.php
  2.  
  3. <html>
  4. <head>
  5. <title>Login Page</title>
  6. <style type="text/css">
  7. body {
  8. background-color:black;
  9. color:yellow;
  10. </style>
  11. <body>
  12.  
  13. <form action="logincheck.php" method="post">
  14. <p align="center">
  15. Username: <input type="text" name="us"><br />
  16. Password: <input type="password" name="pw"><br />
  17. <input type="submit" value="Login" name="loginbutton">
  18. </form>
  19. </body>
  20. </html>
  21.  
  22. Logincheck.php
  23.  
  24. <?php
  25.  
  26. $username="nan0^";
  27. $password="csbeograd1";
  28.  
  29. if ($_POST us=="nan0^" || pw=="csbeograd1)
  30. {echo "succes";}
  31. else
  32. {echo "fail";}
  33.  
  34. ?>
  35.  
  36. Inside.php
  37.  
  38. <html>
  39. <head>
  40. <title>You are in!</title>
  41. <style type="text/css">
  42. body {
  43. background-color:black;
  44. color:green;
  45. font-family:comic sans ms;
  46. text-align:center;
  47. font-size:62;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <h1><b>You have just successfully loged in!</b></h1>
  53. </body>
  54. </html>
  55.  
  56. Outside.php
  57.  
  58. <html>
  59. <head>
  60. <title>You are out!</title>
  61. <style type="text/css">
  62. body {
  63. background-color:black;
  64. color:green;
  65. font-family:comic sans ms;
  66. text-align:center;
  67. font-size:62;
  68. }
  69. </style>
  70. </head>
  71. <body>
  72. <h1><b>You have just faild logging in!</b></h1>
  73. </body>
  74. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement