Advertisement
Guest User

Untitled

a guest
Dec 5th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <!doctype html>
  2. <style>
  3. body{
  4. background-color: rgba(0, 0, 0, 0.85);
  5.  
  6. }
  7. .form1{
  8. margin-top: 40px;
  9. margin-right:60px;
  10.  
  11. }
  12.  
  13. .Headline{
  14. margin-top: 250px;
  15. margin-left: 500px;
  16. }
  17. .Bild{
  18. margin-left: 825px;
  19. margin-top: -700px;
  20. }
  21. .button {
  22. cursor: pointer;
  23. }
  24. #check {
  25. color:white;
  26. margin-left: 575px;
  27. }
  28. </style>
  29. <html>
  30. <head>
  31. <meta charset="utf-8">
  32. <title>Login</title>
  33. </head>
  34. <body>
  35. <div class="Headline">
  36. <a style="font-size:50px; color:white;";>Welcome to
  37. <a style="font-size: 50px;"> black
  38. </a>
  39. </a>
  40. <a style="color:orange;">Orange</a>
  41. </div>
  42.  
  43.  
  44. <form class="form1" action="" method="post">
  45. <table align="center">
  46. <tr>
  47. <td><input type="text" name="username" placeholder="Enter your username"></td>
  48. </tr>
  49. <tr>
  50. <td><input type="password" name="password" placeholder="Enter your password"></td>
  51. <td></td>
  52. <td><input type="submit" name="submit" value="Login"></td>
  53. </tr>
  54. </table>
  55. </form>
  56. <img class="Bild" src="orange.png" height="100px" weight="100px"/>
  57. <div class="output">
  58. <p id="check">
  59. <?php
  60. $usernames = array('Silas', 'Kaan');
  61. $passwords = array('Test123', 'Test321');
  62. if(isset($_POST['submit'])) {
  63. $user = $_POST['username'];
  64. $pass = $_POST['password'];
  65. if($user == $usernames[0] && $pass == $passwords[0] || $user == $usernames[1] && $pass == $passwords[1]) {
  66. echo("You are logged in");
  67. header('Location: http://localhost:8888/webseite/BlackOrange.php');
  68. } else {
  69. echo("Invalid Username/Password");
  70. }
  71. }
  72. ?>
  73. </p>
  74. </div>
  75. </body>
  76. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement