Skip to content

Commit 4db1a86

Browse files
committed
Adding survey form
1 parent d370b3b commit 4db1a86

File tree

6 files changed

+448
-0
lines changed

6 files changed

+448
-0
lines changed

SURVEY FORM/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

SURVEY FORM/app.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const express = require("express");
2+
3+
const app = express();
4+
5+
app.use(express.static("public"));
6+
7+
app.get("/", function(req, res) {
8+
res.sendFile(__dirname + "/index.html");
9+
});
10+
11+
app.post("/index.html", (req, res) => {
12+
res.send("<h1> Thankyou for filling up this feedback form</h1>");
13+
})
14+
15+
app.listen(3000, function() {
16+
console.log("Server started running on port 3000");
17+
})

SURVEY FORM/index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="stylesheet" type="text/css" href="css/style.css">
7+
<title>Survey Form</title>
8+
</head>
9+
<body>
10+
<h1>Please fill this Survey-Form.</h1>
11+
12+
<form method="POST">
13+
<div>
14+
<label for="name"><b>Name:</b></label>
15+
<input type="text" placeholder="Enter your name" name="name" required>
16+
17+
<label for="email"><b>Email:</b></label>
18+
<input type="email" placeholder="Enter your Email" name="email" required>
19+
20+
<label for="tel"><b>Phone Number:</b></label>
21+
<input type="number" placeholder="Enter your Phone Number" name="phoneNumber" required>
22+
23+
<label><b>How likely is that you would recommend Pizza Ghar to a family member or a friend?</b></label>
24+
<label>Definately</label>
25+
<input type="radio" name="same" name="recommendation">
26+
<label>Maybe</label>
27+
<input type="radio" name="same" name="recommendation">
28+
<label>Not Sure</label>
29+
<input type="radio" name="same" name="recommendation">
30+
31+
<label><b>What do you like most in our Pizzas?</b></label>
32+
<textarea name="" id="" cols="30" rows="5"></textarea>
33+
34+
<button type="submit" class="btn">Submit</button>
35+
</div>
36+
</form>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)