Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Jangan lupa nilai variabel
- // tidak langsung otomatis terisi dari form
- // tapi harus diisi dulu kaya di bawah
- $user = $_REQUEST['user'];
- $password = $_REQUEST['password'];
- // Cek kosong jangan pakai angka 0
- if ($user == '' || $password == '') {
- echo 'KOSONG';
- } else {
- if ($user == 'admin' && $password == '123') {
- echo 'BENAR';
- } else {
- echo 'SALAH';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement