Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "core/init.php";
- //validasi login
- if (isset($_POST['submit'])) {
- $nama = $_POST['username'];
- $pass = $_POST['password'];
- if (!empty(trim($nama)) && !empty(trim($pass)) ){
- cek_data($nama,$pass);
- }else{
- echo "Jangan Kosong";
- }
- }
- require_once "view/header.php";
- ?>
- <form action="login.php" method="post">
- <label for="">Nama</label><br>
- <input type="text" name="username"><br><br>
- <label for="">Password</label><br>
- <input type="password" name="password"><br><br>
- <input type="submit" name="submit" value="login">
- </form>
- <?php
- require_once "view/footer.php";
- ?>
Add Comment
Please, Sign In to add comment