-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html
49 lines (48 loc) · 2.27 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>STUDENT REGISTRATION FORM</h1>
<form action="/submit-registration-form" method="post">
<label for ="name">Name: </label>
<input type="text" id="name" name="name" placeholder="Enter your name" required><br />
<label for ="date of birth">Birth Date:</label>
<input type="date" id="dob" name="date of birth" value="birthdate" required>
<br />
<!--radio buttons-->
<label>Gender</label><br>
<label for="gender">Male</label>
<input type="radio" name="gender" id="male"><br />
<label for="gender">Female</label>
<input type="radio" name="gender" id="female"> <br />
<fieldset>
<legend>Address Information</legend>
<label for="city">City:</label>
<input type="text" name="city" id="city" required><br />
<label for="ward">Ward</label>
<input type="text" name="ward" id="ward" required><br />
<label for="Homeaddress">Home Address:</label>
<input type="text" name="homeaddress" id="homeaddress" required><br />
</fieldset>
<label for="phone">Phone Number:</label>
<input type="tel" name="phone number" id="phone" required> <br />
<label for="email">Email:</label>
<input type="email" name="email" id="email"><br />
<label for="course">Course:</label><br>
<select>
<option value="">Please select course</option>
<option value="Computer Science">Computer Science</option>
<option value="Business Information Technology">Business Information Technology</option>
<option value="Computer Engineering">Computer Engineering</option>
<option value="Information Technology">nformation Technology</option>
</select><br>
<button type="submit" value="register" id="submit">Register</button><br />
<button type="button" onclick="window.location.href='/home';" value="cancel" id="submit">Cancel</button>
</form>
</body>
</html>