Skip to content

Instantly share code, notes, and snippets.

@matthewd673
Last active August 29, 2015 14:02
Show Gist options
  • Save matthewd673/e293c5bfaa028a2bdfb8 to your computer and use it in GitHub Desktop.
Save matthewd673/e293c5bfaa028a2bdfb8 to your computer and use it in GitHub Desktop.
A simple account system
<!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