-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreg.php
More file actions
55 lines (52 loc) · 2.19 KB
/
reg.php
File metadata and controls
55 lines (52 loc) · 2.19 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
<?php
session_start()
?>
<!DOCTYPE html>
<html lang="en">
<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">
<title>Document</title>
</head>
<body>
<div class="wrap">
<div class="header"></div>
<div class="wrap_forma">
<form action="vendor/reg_script.php" method="POST">
<div class="btns">
<div class="btn_fio">
<input type="text" name='fio' placeholder="Введите ваше ФИО" required />
<label for='fio'>Ваше фио</label>
</div>
<div class="btn_phone">
<input type="text" name='phone' placeholder="Введите ваш телефон" required />
<label for='phone'>Ваш телефон</label>
</div>
<div class="btn_email">
<input type="email" name='email' placeholder="Введите вашу почту" required />
<label for='email'>Ваша почта</label>
</div>
<div class="btn_login">
<input type="text" name='login' placeholder="Введите ваш логин" required />
<label for='login'>Ваш логин</label>
</div>
<div class="btn_password">
<input type="password" name='pass' placeholder="Введите ваш пароль" required />
<label for='password'>Ваш пароль</label>
</div>
</div>
<div class="btn_submit">
<button type='submit'>Зарегестрироваться!</button>
</div>
<?php
if(isset($_SESSION['ERROR_MESSAGE'])){
echo '<p>'.$_SESSION['ERROR_MESSAGE'].'</p>';
}
unset($_SESSION['ERROR_MESSAGE'])
?>
</form>
</div>
</div>
</body>
</html>