Last active
August 29, 2015 14:02
-
-
Save matthewd673/e293c5bfaa028a2bdfb8 to your computer and use it in GitHub Desktop.
A simple account system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="en"> | |
<head> | |
<title>Login</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
function CheckPassword() | |
{ | |
var username=document.login.username.value; | |
var password=document.login.password.value; | |
location.href = username + '&&' + password + '.htm'; | |
} | |
</script> | |
<form method="post" action="ingen_javascript.htm" onsubmit="CheckPassword();return false;" name="login"> | |
<pre> | |
Username: <input type="text" name="username"> | |
Password: <input type="password" name="password"> | |
</pre> | |
<input type="submit" value="Login" onclick="CheckPassword();return false;"> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment