-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
44 lines (42 loc) · 1.21 KB
/
login.php
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
<?php include 'cabecalho.php';?>
<?php
session_start();
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$_SESSION["logado"] = "ok";
header("location: index.php");
exit();
}
?>
<?php ################################ ?>
<style>
form {
width: 400px;
margin: auto;
}
</style>
<form class="form-horizontal" method="POST">
<fieldset>
<legend>Insira seu login</legend>
<div class="form-group">
<label for="inputEmail" class="col-lg-2 control-label">Usuário</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="inputEmail" placeholder="usuário" name="usuario">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-lg-2 control-label">Senha</label>
<div class="col-lg-10">
<input type="password" class="form-control" id="inputPassword" placeholder="senha" senha="senha">
</div>
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<button type="reset" class="btn btn-default">Cancel</button>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</fieldset>
</form>
<?php ################################ ?>
<?php include 'footer.php';?>