Advertisement
Guest User

bukar!

a guest
May 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!-- Mark Pipko -->
  3. <html>
  4.  
  5. <head>
  6. <title> </title>
  7. <style> </style>
  8. <script>
  9. function initialize()
  10. {
  11. tutton = document.getElementById("button");
  12. }
  13.  
  14. function newUser(user)
  15. {
  16. if (user.checked)
  17. {
  18. tutton.value = "register!";
  19. }
  20.  
  21. else
  22. {
  23. tutton.value = "login";
  24. }
  25. }
  26.  
  27. </script>
  28. </head>
  29.  
  30. <body onload = "initialize();">
  31. <form method = "post" action = "database.php">
  32. username: <input type = "text" name = "uname"/>
  33. <br/><br/>
  34. Password: <input type = "text" name = "pwd"/>
  35. <br/><br/>
  36. New User: <input type = "checkbox" name = "newuser" onchange="newUser(this);" />
  37. <br/><br/>
  38. <input type = "submit" value = "login" id = "button" />
  39. </form>
  40.  
  41. </body>
  42.  
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement