Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <?php
  2. //print_r($GLOBALS['user']);
  3. global $user;
  4. if (!$user->uid) {
  5.  
  6. ?>
  7. <form method="POST" action="?id=<?php echo $id; ?>">
  8. <input type="hidden" name="loguj" value="loguj" />
  9. <div class="form-group">
  10. <label for="login">Login:</label>
  11. <input type="text" name="login" id="login" class="form-control" required maxlength="10" />
  12. </div>
  13. <div class="form-group">
  14. <label for="haslo">Hasło:</label>
  15. <input type="password" name="haslo" id="haslo" class="form-control" required maxlength="20" />
  16. </div>
  17. <button type="submit" class="btn btn-primary">Zaloguj</button>
  18. </form>
  19. <?php
  20. } else {
  21. echo '<p>Jesteś już zalogowany!</p>';
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement