-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistr.php
61 lines (45 loc) · 1.89 KB
/
registr.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
<?php
session_start();
if ($_SESSION['user']) {
header('Location: profile.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Форма регистрации</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body class="bg-dark text-white">
<?php require_once 'blocks/header.php'; ?>
<!-- форма регистрации -->
<div class="container col-4 mt-5">
<form action="functions/signup.php" method="post" enctype="multipart/form-data">
<label>ФИО</label>
<input type="text" name="full_name" placeholder="Введите свое полное имя">
<label>Логин</label>
<input type="text" name="login" placeholder="Введите логин">
<label>Почта</label>
<input type="email" name="email" placeholder="Введите адресс своей почты">
<label>Изображение профиля</label>
<input type="file" name="img">
<label>Пароль</label>
<input type="password" name="password" placeholder="Введите пароль">
<label>Подтверждение пароля</label>
<input type="password" name="password_confirm" placeholder="Подтвердите пароль">
<button type="submit">Зарегистрироваться</button>
<p> У вас уже есть аккаунт? - <a href="auth.php">Авторизируйтесь</a> </p>
<?php
if ($_SESSION['message']) {
echo '<p class="msg"> ' . $_SESSION['message'] . ' </p>';
}
unset($_SESSION['message']);
?>
</form>
</div>
</body>
</html>