This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
form4.html
84 lines (72 loc) · 2.37 KB
/
form4.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
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Survey Feedback Form</title>
<style>
body {
background-image: url('https://png.pngtree.com/thumb_back/fh260/background/20210324/pngtree-abstract-memphis-playful-portfolio-pink-image_593418.jpg');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-color: #f0f0f0;
color: #333;
font-family: Arial, sans-serif;
}
.title-bar {
background-color: #32CD32;
color: #fff;
text-align: center;
padding: 10px;
font-size: 24px;
}
form {
background-color: rgba(255, 255, 255, 0.9);
padding: 20px;
border-radius: 10px;
}
label {
font-weight: bold;
}
input, textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
input[type="number"] {
width: 50px;
}
input[type="submit"] {
background-color: #32CD32;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #228B22;
}
</style>
</head>
<body>
<div class="title-bar">Form 4</div>
<h1>Survey Feedback Form</h1>
<form action="survey_submit.php" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br><br>
<label for="email">Email Address:</label>
<input type="email" id="email" name="email" required><br><br>
<label for="age">Age:</label>
<input type="number" id="age" name="age" required><br><br>
<label for="feedback">Feedback or Comments:</label>
<textarea id="feedback" name="feedback" rows="4" cols="50"></textarea><br><br>
<label for="rating">Rating (1-5):</label>
<input type="number" id="rating" name="rating" min="1" max="5" required><br><br>
<input type="submit" value="Submit Feedback">
</form>
</body>
</html>