/
form.html
27 lines (27 loc) · 1.14 KB
/
form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<head>
<title>Minimal Sign-up Form</title>
<script src="http://cdn.jquerytools.org/1.2.3/full/jquery.tools.min.js"></script>
<link href="http://static.flowplayer.org/tools/css/standalone.css" rel="stylesheet" type="text/css">
<link href="http://static.flowplayer.org/tools/demos/validator/css/form.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
$(document).ready(function() {
$("#myform").validator();
});
</script>
</head>
<body>
<form id="myform" action="/" method="post">
<fieldset>
<p><label>username</label><input maxlength="20" name="username" pattern="[a-zA-Z]+" size="20" type="text" required="required" />
<span class="error">Dummy error message</span>
</p>
<p><label>email</label><input name="email" size="20" type="text" required="required"/></p>
<p><label>password</label><input maxlength="50" name="password" size="20" type="password" required="required"/></p>
<p><label>confirm password</label><input maxlength="50" name="confirm-password" size="20" type="password" required="required"/></p>
<label></label>
</fieldset>
<button type="submit">Sign Up</button>
</form>
</body>
</html>