Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>Documento sin título</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <style type="text/css">
- <!--
- .Estilo1 {
- font-size: 60px;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- }
- .Estilo2 {font-size: 50px}
- .Estilo3 {font-family: Verdana, Arial, Helvetica, sans-serif}
- .Estilo4 {font-size: 50px; font-family: Verdana, Arial, Helvetica, sans-serif; }
- -->
- </style>
- </head>
- <body>
- <h1 align="center" class="Estilo1">Inicio de Sesion</h1>
- <form name="form1" method="post" action="">
- <p align="center" class="Estilo4">Usuario :
- <input name="usuario" type="text" class="Estilo2" id="usuario">
- </p>
- <p align="center" class="Estilo4">Contraseña :
- <input name="pass" type="password" class="Estilo2" id="pass">
- </p>
- <p align="center" class="Estilo2">
- <span class="Estilo3">
- <input name="login" type="submit" class="Estilo2" id="login" value="Entrar">
- </span></p>
- </form>
- <p align="center" class="Estilo2"> </p>
- </body>
- </html>
- <?php
- if(isset($_POST['login']))
- {
- $user = $_POST['usuario'];
- $inpass = $_POST['pass'];
- $pass = '1234';
- if ($inpass == $pass && $user == 'admin')
- {
- header('Location: control.php');
- }
- else (header('Location: error.php'));
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement