Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!-- Mark Pipko -->
- <html>
- <head>
- <title> </title>
- <style> </style>
- <script>
- function initialize()
- {
- tutton = document.getElementById("button");
- }
- function newUser(user)
- {
- if (user.checked)
- {
- tutton.value = "register!";
- }
- else
- {
- tutton.value = "login";
- }
- }
- </script>
- </head>
- <body onload = "initialize();">
- <form method = "post" action = "database.php">
- username: <input type = "text" name = "uname"/>
- <br/><br/>
- Password: <input type = "text" name = "pwd"/>
- <br/><br/>
- New User: <input type = "checkbox" name = "newuser" onchange="newUser(this);" />
- <br/><br/>
- <input type = "submit" value = "login" id = "button" />
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement