-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverificacion.php
More file actions
53 lines (51 loc) · 1.3 KB
/
verificacion.php
File metadata and controls
53 lines (51 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/estilo.css">
<title>Home</title>
</head>
<body>
<?php
include'css/barra.html'
?>
<h1> Acceso al sistema </h1>
<form name="form1" method="post" action="verificacion.php">
<p> </p>
<table width="370" border="5" cellspacing="5" cellpadding="5">
<tr>
<th colspan="2" scope="col">Acceso</th>
</tr>
<tr>
<th width="128" scope="row">Login</th>
<td width="193"><label for="login"></label>
<input type="text" name="login" id="login"></td>
</tr>
<tr>
<th scope="row">Clave</th>
<td><label for="clave"></label>
<input type="text" name="clave" id="clave"></td>
</tr>
<tr>
<th scope="row"><input type="submit" name="enviar" id="enviar" value="Enviar"></th>
<td><input type="reset" name="button2" id="button2" value="Restablecer"></td>
</tr>
</table>
<p> </p>
</form>
<?php
if(isset($_POST['enviar']))
{
if($_POST['login']=='keni123' && $_POST['clave']=='cata')
{
$_SESSION['usuario'] ="Catalina De Martinez";
header('location:usuarios.php' );
}
}
?>
</body>
</html>