Advertisement
Guest User

Untitled

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