Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head></head>
- <body>
- <div id="forma">
- <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post">
- Username: <input type="text" name="korime">
- Password: <input type="password" name="sifra">
- <input type="submit" name="dugme" value="Posalji">
- </form>
- </div>
- <?php
- if(isset($_POST['dugme']))
- {
- $korime = $_POST['korime'];
- $pass = $_POST['sifra'];
- echo "$korime, dobrodošli na forum.<br>Vaša lozinka je: <i>$pass</i>!";
- echo "<script>document.getElementById('forma').style.display = 'none';</script>";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement