-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
63 lines (53 loc) · 1.8 KB
/
index.php
File metadata and controls
63 lines (53 loc) · 1.8 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
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<style>
.erro{
border:solid 2px red;
padding:5px;
}
.logout{
border:solid 2px green;
padding:5px;
}
</style>
</head>
<body>
<div class="container">
<h1>Biblioteca da Cris</h1>
<form action="verificarLogin.php" method="post">
<label>
Login:<br>
<input type="text" name="login" required>
</label>
<label>
Senha:<br>
<input type="password" name="senha" required>
</label>
<input type="submit" value="Entrar" class="btn btn-primary">
</form>
</div>
<div class="msg">
<?php
//se existir
if(isset($_GET["erro"])){
echo "<div class='erro'>".$_GET["erro"]."</div>";
}elseif(isset($_GET["sair"])){
echo "<div class='logout'>".$_GET["sair"]."</div>";
}elseif(isset($_GET["msg"])){
echo "<div class='invasor'>".$_GET["msg"]."</div>";
}
// colocar a mns de erro aqui na index para imprimir aqui a msg
//notepad.cc/qqurl
?>
</div>
</body>
</html>