Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user= $_POST['username'];
- $pass = $_POST['password'];
- if (isset($_POST)) {
- echo $user.' '.$pass;
- }
- echo "<hr><br>";
- if (isset($_POST['submit']) == "Submit"){
- if ($user == "udin12"){
- if ($pass == "admin"){
- header("Location: sukses.php");
- } else {
- echo "password SALAH";
- }
- } else {
- echo "User Tidak ada";
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <form method="post" action="">
- <input type="text" name="username">Username
- <br>
- <input type="password" name="password">Password
- <br>
- <button type="submit" name="submit" value="Submit" id="submit">Submit</button>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement