Advertisement
Guest User

Untitled

a guest
May 28th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. web 1
  2. <?php
  3. if(isset($_POST['enviar'])){
  4. $username = $_POST['username'];
  5. $password = $_POST['password'];
  6. }
  7. ?>
  8. perfecta
  9. web 2
  10. <?php
  11. session_start();
  12. if($_POST["username"] == "123" && $_POST["password"] == "123"){
  13. $_SESSION['username'] = $_POST['username'] ;
  14. $_SESSION['password'] = $_POST['password'] ;
  15. $_SESSION["autenticado"]= "SI";
  16. header ("Location: bienvenido.php");
  17. }
  18. else {
  19. echo "Debes loguearte";
  20. }
  21. ?>
  22.  
  23.  
  24. web 3
  25. perdido
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement