Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>register</title>
- </head>
- <body>
- <form id="form1">
- username:
- <input type="text" name "username" /> password:
- <input type="text" name "password" />
- <button onclick="register()">register</button>
- </form>
- <script>
- function register() {
- var cookievalue = document.getElementById("form1").value;
- document.cookie = "name" + cookievalue;
- document.write = username = +"="
- password = );
- var Days = 30;
- var exp = new Date();
- exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
- if (submited) {
- link("Login.html");
- }
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment