-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration.html
73 lines (67 loc) · 2.98 KB
/
registration.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<title>Registration</title>
<link rel="stylesheet" href="css/registration.css">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" type="image/x-icon" href="images/icon.ico" />
<script>
function checkPasswords() {
if (document.getElementById('passwordX').value !== document.getElementById('passwordY').value) {
alert('Passwords do not match!');
return false;
} else {
return true;
}
}
</script>
<script type="text/javascript" src="js/Load.js">
</script>
</head>
<body>
<div id="header">
<script>loadXmlMenu()</script>
</div>
<div class="content">
<form action="action.html" method="get" id="registration" name="registration" onsubmit="return checkPasswords()">
<p>
<label for="fname">First Name</label>
<input type="text" id="fname" name="fname" title="only english letters" pattern="[A-Za-z\s]+$" required /><span></span>
</p>
<p>
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lname" title="only english letters" pattern="[A-Za-z\s]+$" required /><span></span>
</p>
<p>
<label for="birthday">Date of birth</label>
<input type="date" id="birthday" name="birthday" title="Date format: 31-12-1990" required /><span></span>
</p>
<p>
<label for="email">E-mail</label>
<input type="email" id="email" name="email" title="example@grsu.by" placeholder="example@grsu.by" pattern="^((([\w]+\.[\w]+)+)|([\w]+))@(([\w]+\.)+)([A-Za-z]{2,3})$" required /><span></span>
</p>
<p>
<label for="country">Country</label>
<select id="country" name="country" required>
<option value="Belarus">Belarus</option>
<option value="Russia">Russia</option>
<option value="Ukraine">Ukraine</option>
<option value="Pakistan">Pakistan</option>
</select>
</p>
<p>
<label for="passwordX">Password</label>
<input type="password" name="passwordX" id="passwordX" pattern="\w{5,}" title="Five or more characters" required /><span></span>
</p>
<p>
<label for="passwordY">Confirm</label>
<input type="password" name="passwordY" id="passwordY" pattern="\w{5,}" title="Five or more characters" required /><span></span>
</p>
<p>
<button type="submit" id="submit" name="submit" title="Submit">Submit</button>
<button type="reset" id="reset" name="reset" title="Reset">Reset</button>
</p>
</form>
</div>
</body>
</html>