-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreg.php
63 lines (57 loc) · 2.93 KB
/
reg.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
include("path.php");
include("app/controllers/users.php");
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>e-Blog</title>
<!-- Подлкючение бутсрэпа -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<!-- Подлкючение font-awesome -->
<script src="https://kit.fontawesome.com/2fc4dc419e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="assets/css/reg.css">
</head>
<body>
<!-- Header -->
<?php include("app/include/header.php");?>
<!-- Form -->
<div class="container reg-form">
<form class="row justify-content-center" method="post" action="reg.php">
<h2>Регистрация</h2>
<div class="form-group col-12 col-md-4">
<label for="exampleInputLogin"><i class="fa-solid fa-hashtag"></i> Ваше имя на сайте (только латиница)</label>
<input name="login" value="<?=$login?>" type="text" class="form-control" id="exampleInputLogin" aria-describedby="emailHelp" placeholder="Введите логин">
</div>
<div class="w-100"></div>
<div class="form-group col-12 col-md-4">
<label for="exampleInputEmail1"><i class="fa-solid fa-envelope"></i> Email</label>
<input name="email" value="<?=$email?>" type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Введите свой почтовый ящик">
</div>
<div class="w-100"></div>
<div class="form-group col-12 col-md-4">
<label for="exampleInputPassword1"><i class="fa-solid fa-lock"></i> Пароль</label>
<input name="pass_f" type="password" class="form-control" id="exampleInputPassword1" placeholder="Придуймайте пароль">
</div>
<div class="w-100"></div>
<div class="form-group col-12 col-md-4">
<label for="exampleInputPassword2"><i class="fa-solid fa-key"></i> Подтвердите пароль</label>
<input name="pass_s" type="password" class="form-control" id="exampleInputPassword2" placeholder="Повторно введите и запомните пароль">
</div>
<div class="w-100"></div>
<!-- errMessage -->
<div class="form-group col-12 col-md-4 error">
<p><?php echo $errMessage?></p>
</div>
<div class="w-100"></div>
<div class="form-group col-12 col-md-4">
<button type="submit" class="btn" name="btn_reg">Отправить</button>
<a href="log.php">Или же Войти</a>
</div>
</form>
</div>
<!-- Footer -->
<?php include("app/include/footer.php");?>
</body>