-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauto.php
More file actions
46 lines (43 loc) · 1.52 KB
/
auto.php
File metadata and controls
46 lines (43 loc) · 1.52 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
<?php
session_start();
if(isset($_SESSION['user_login'])){
header('Location: index.php');
}
?>
<!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/auto_script.php" method="POST">
<div class="btns">
<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>