Advertisement
Guest User

web tujuan

a guest
Jul 31st, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. $user= $_POST['username'];
  4. $pass = $_POST['password'];
  5.  
  6. if (isset($_POST)) {
  7. echo $user.' '.$pass;
  8. }
  9. echo "<hr><br>";
  10.  
  11. if (isset($_POST['submit']) == "Submit"){
  12. if ($user == "udin12"){
  13. if ($pass == "admin"){
  14. header("Location: sukses.php");
  15. } else {
  16. echo "password SALAH";
  17. }
  18. } else {
  19. echo "User Tidak ada";
  20. }
  21. }
  22.  
  23. ?>
  24.  
  25. <!DOCTYPE html>
  26. <html>
  27. <head>
  28. <title></title>
  29. </head>
  30. <body>
  31. <form method="post" action="">
  32. <input type="text" name="username">Username
  33. <br>
  34. <input type="password" name="password">Password
  35. <br>
  36. <button type="submit" name="submit" value="Submit" id="submit">Submit</button>
  37. </form>
  38.  
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement