Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="utf-8">
- <title>Log in</title>
- </head>
- <body>
- <?php
- if(isset($POST['submitgumb'])){
- $username = $_POST['uname'];
- $password = $_POST['pass'];
- if($username=='kapica' && $password=='volk'){
- echo "<p style='color: green'>Pravilno geslo</p>";
- }
- else{
- echo "<p style='color: red'>Narobno geslo</p>";
- }
- }
- ?>
- <form method="post">
- <input placeholder ="username" type="text" name="uname"><br>
- <input placeholder ="password" type="password" name="pass"><br>
- <button type="submit" name="submitgumb">Prijavi se</button>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement