-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserForm.html
83 lines (78 loc) · 1.58 KB
/
userForm.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
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Add New Employee</title>
<link rel="stylesheet" href="style/employee.css">
<style>
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
input[type=text], select,input[type=password],input[type=email] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<a href="ViewServlet">View All Records</a>
<br />
<h1>Add New Employee</h1>
<form action="newUser.jsp" method="post">
<table>
<tr>
<td>Name:</td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="email" name="email" /></td>
</tr>
<tr>
<td>Sex:</td>
<td><input type="radio" name="sex" value="male" />Male <input
type="radio" name="sex" value="female" />Female</td>
</tr>
<tr>
<td>Country:</td>
<td><select name="country" style="width: 155px">
<option>India</option>
<option>Japan</option>
<option>Germany</option>
<option>USA</option>
<option>Other</option>
</select></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Add Employee" /></td>
</tr>
</table>
</form>
</body>
</html>