Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_COOKIE['login']) and isset($_COOKIE['pass'])){
- $info = mysqli_query($db,"SELECT * FROM `users` WHERE `login` = '$_COOKIE[login]' and `password` = '$_COOKIE[pass]'");
- $arr = mysqli_fetch_array($info);
- echo $arr["nick"].'<form method="POST" action="exit.php">
- <input type="submit" name="exit" value="Выход"/>
- </form>';
- }else{
- echo '<input type="text" id="a_login" placeholder=" Логин"/><br/>
- <input type="password" id="a_password" placeholder=" Пароль"/><br/>
- <button id="btn">Вход</button><a href="reg.php">Регистрация</a><br/>
- <font id="alert" color="red"></font>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement