Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- setcookie("username", "password");
- ?>
- <html>
- <body>
- <form method="post" action="login1.php" >
- Username: <input type="text" value="username" />
- Password: <input type="text" value="password" />
- <input type="submit" />
- </form>
- </body>
- </html>
- //LOGIN1.PHP
- <?php
- if (isset($_COOKIE["username"]))
- echo "sup " . $_COOKIE["username"] . "<br />";
- else
- echo "login sir";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement