-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformaReg.php
More file actions
78 lines (70 loc) · 3.11 KB
/
formaReg.php
File metadata and controls
78 lines (70 loc) · 3.11 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
session_start();
if (isset($_SESSION["user"])) {
header("Location: profile.php");
}
if (isset($_SESSION["admin"])) {
header("Location:admin.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link href="output.css" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body class="my-custom-bg-class">
<div class="flex flex-col items-center justify-center h-screen">
<div class="text-3xl mb-8">Нарушениям.Нет</div>
<form
class="flex flex-col justify-center items-center border-4 border-x-[#030716] h-[700px] w-[700px]"
action='vendor/reg.php' method="POST" enctype='multipart/form-data'>
<div class="flex flex-col justify-evenly text-2xl h-full">
<div class="self-center" >
<h2 >Регистрация</h2>
</div>
<div>
<input class="w-96 h-12 bg-[#cccccc] border-4 border-b-[#030716] outline-none" type="text" placeholder="ФИО"
required="yes" name="username">
</div>
<div>
<input class="w-96 h-12 bg-[#cccccc] border-4 border-b-[#030716] outline-none" type="text"
placeholder="Номер Телефона" required="yes" name="phonenum">
</div>
<div>
<input class="w-96 h-12 bg-[#cccccc] border-4 border-b-[#030716] outline-none" type="text"
placeholder="Email" required="yes" name="email">
</div>
<div>
<input class="w-96 h-12 bg-[#cccccc] border-4 border-b-[#030716] outline-none" type="text"
placeholder="Логин" required="yes" name="login">
</div>
<div>
<input class="w-96 h-12 bg-[#cccccc] border-4 border-b-[#030716] outline-none" type="password"
placeholder="Пароль" required="yes" name="password">
</div>
<div>
<input class="w-96 h-12 bg-[#cccccc] border-4 border-b-[#030716] outline-none" type="password"
placeholder="Подтвердите Пароль" required="yes" name="passwordConfirm">
</div>
<div class="self-center">
<button class="rounded-lg border-2 border-black bg-[#030716] w-80 h-10 text-white"
type="submit">Зарегистрироваться</button>
</div>
<div class="self-center">
<a href="index.php">Есть аккаунт? - <span
class="underline decoration-solid">Войти</span></a>
</div>
</div>
<?php
if (isset($_SESSION['message'])) {
echo '<div class="msg">' . $_SESSION['message'] . '</div>';
}
unset($_SESSION['message']);
?>
</form>
</div>
</body>
</html>