-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.php
executable file
·43 lines (42 loc) · 1.76 KB
/
registration.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Регистрация</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script async src="assets/javascript/bootstrap.min.js"></script>
<script async src="assets/javascript/registration.js"></script>
<link rel="stylesheet" href="assets/stylesheets/bootstrap.min.css">
</head>
<body>
<div class="row">
<div class="container">
<h4>Регистрация пользователей<a href="index.php"><small> Вернуться на главную страницу</small></a></h4>
<?php require_once 'authorization.php';
if (!isset($_SESSION['iduser'])){?>
<form action="addusers.php" method="post" name="reg">
<div class="form-group">
<label>Имя пользователя</label>
<input name="nameuser" placeholder="Ваше имя" class="form-control">
</div>
<div class="form-group">
<label>Логин</label>
<input name="login" placeholder="Логин" class="form-control">
</div>
<div class="form-group">
<label>Пароль</label>
<input type="password" name="password" placeholder="Пароль" class="form-control"><b id="messagepass"></b><br />
<input type="password" name="confirm_password" placeholder="Повторите пароль" class="form-control"><b id="messageconfpass">
</div>
<input type="submit" value="Зарегестрироваться" class="btn btn-default">
<b id="errmessage"></b>
</form>
<?php } else echo "Вы успешно зарегестрировались"; ?>
<?php
require_once 'addusers.php';
if (isset($_SESSION['msg']))echo $_SESSION['msg'];
unset($_SESSION['msg']);
?>
</div>
</div>
</body>
</html>