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 header a href="#" class="Logo">Logo ul> li> a href="#"> О нас /a> /li> li> a href="#"> Каталог /a> /li> li> a href="#"> Корзина /a> /li> li> a href="#"> Заказы /a> /li> li> a href="#"> Где нас найти? /a> /li> a href="index.html#vxod">button hre>Вход/button>/a a href="index.html#register">button hre>Регистрация /button> /ul> /header> section id="NewTovar"> a class="cartochka" href="#"> i > p>товар/p> /a> a class="cartochka" href="#"> i > p>товар/p> /a> a class="cartochka" href="#"> i> p>товар/p> /a> /section> section id="register"> hr class="hr"> form method="POST" action="registr.php"> input type="text" placeholder="Имя" name="name" pattern="[а-яА-ЯёЁ\s-]+" required /> input type="text" placeholder="Фамилия" name="surname" pattern="[а-яА-ЯёЁ\s-]+" required /> input type="text" placeholder="Отчество" name="patronymic" pattern="[а-яА-ЯёЁ\s-]+" /> input type="text" placeholder="Логин" name="login" pattern="[a-zA-Z0-9-]+" required /> input type="email" placeholder="Email" name="email" required /> input type="password" placeholder="Пароль" name="password" pattern=".{6,}" required /> input type="password" placeholder="Повтор пароля" name="password_repeat" required /> button class="btn btn-success" type="submit">Зарегистрироваться/button> /form> /section> section id="vxod"> hr class="hr"> form method="POST" action="auth.php"> input type="text" placeholder="Логин" name="login" required /> input type="password" placeholder="Пароль" name="password" required /> button>Войти/button> /form> section>$name = filter_var(trim($_POST['name']), FILTER_SANITIZE_STRING); $surname = filter_var(trim($_POST['surname']), FILTER_SANITIZE_STRING); $patronymic = filter_var(trim($_POST['patronymic']), FILTER_SANITIZE_STRING); $login = filter_var(trim($_POST['login']), FILTER_SANITIZE_STRING); $email = filter_var(trim($_POST['email']), FILTER_SANITIZE_STRING); $password = filter_var(trim($_POST['password']), FILTER_SANITIZE_STRING); $password_repeat = filter_var(trim($_POST['password_repeat']), FILTER_SANITIZE_STRING); $mysql = new mysqli('localhost','root','root','phptest');
$result = $mysql->query("SELECT * FROM
|