Advertisement
Guest User

Untitled

a guest
May 10th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. // Jangan lupa nilai variabel
  4. // tidak langsung otomatis terisi dari form
  5. // tapi harus diisi dulu kaya di bawah
  6.  
  7. $user = $_REQUEST['user'];
  8. $password = $_REQUEST['password'];
  9.  
  10. // Cek kosong jangan pakai angka 0
  11. if ($user == '' || $password == '') {
  12.     echo 'KOSONG';
  13. } else {
  14.     if ($user == 'admin' && $password == '123') {
  15.         echo 'BENAR';
  16.     } else {
  17.         echo 'SALAH';
  18.     }
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement