Advertisement
Guest User

Untitled

a guest
Jun 8th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. setcookie("username", "password");
  3. ?>
  4.  
  5. <html>
  6. <body>
  7. <form method="post" action="login1.php" >
  8.     Username: <input type="text" value="username" />
  9.     Password: <input type="text" value="password" />
  10. <input type="submit" />
  11. </form>
  12. </body>
  13. </html>
  14.  
  15. //LOGIN1.PHP
  16.  
  17. <?php
  18. if (isset($_COOKIE["username"]))
  19.   echo "sup " . $_COOKIE["username"] . "<br />";
  20. else
  21.   echo "login sir";
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement