daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 8th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top