Advertisement
mem1889

Untitled

Feb 6th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <title>Documento sin t&iacute;tulo</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <style type="text/css">
  8. <!--
  9. .Estilo1 {
  10. font-size: 60px;
  11. font-family: Verdana, Arial, Helvetica, sans-serif;
  12. }
  13. .Estilo2 {font-size: 50px}
  14. .Estilo3 {font-family: Verdana, Arial, Helvetica, sans-serif}
  15. .Estilo4 {font-size: 50px; font-family: Verdana, Arial, Helvetica, sans-serif; }
  16. -->
  17. </style>
  18. </head>
  19. <body>
  20. <h1 align="center" class="Estilo1">Inicio de Sesion</h1>
  21. <form name="form1" method="post" action="">
  22. <p align="center" class="Estilo4">Usuario :
  23. <input name="usuario" type="text" class="Estilo2" id="usuario">
  24. </p>
  25. <p align="center" class="Estilo4">Contrase&ntilde;a :
  26. <input name="pass" type="password" class="Estilo2" id="pass">
  27. </p>
  28. <p align="center" class="Estilo2">
  29. <span class="Estilo3">
  30. <input name="login" type="submit" class="Estilo2" id="login" value="Entrar">
  31. </span></p>
  32. </form>
  33. <p align="center" class="Estilo2">&nbsp; </p>
  34. </body>
  35. </html>
  36. <?php
  37.  
  38. if(isset($_POST['login']))
  39. {
  40. $user = $_POST['usuario'];
  41. $inpass = $_POST['pass'];
  42. $pass = '1234';
  43. if ($inpass == $pass && $user == 'admin')
  44. {
  45. header('Location: control.php');
  46. }
  47. else (header('Location: error.php'));
  48.  
  49. }
  50.  
  51. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement