forked from assembler-institute/php-server-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
54 lines (46 loc) · 1.8 KB
/
Copy pathindex.php
File metadata and controls
54 lines (46 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="style.css">
<title>Php Form</title>
</head>
<body class="body">
<div class="container">
<h1>Log in</h1>
<form id="regiration_form" action="validate.php" method="post">
<fieldset>
<div class="form-group">
<label for="username">Username</label>
<input type="text" class="form-control" id="user" name="user" placeholder="Username">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="pass" placeholder="Password">
</div>
<p>
<?php
if (isset($_GET["error"])) {
if ($_GET["error"] === "error") {
echo "Your username or pass is wrong.";
} else if ($_GET["error"] === "userempty") {
echo "Your username is empty.";
} else if ($_GET["error"] === "passempty") {
echo "Your pass is empty.";
}
;
}
?>
</p>
<br>
<input type="submit" class="next btn btn-info" value="Sing In" />
</fieldset>
</form>
</div>
</body>
</html>