Question: question 2 javascript ISON ring in the wing form Note: ame, t war express - he wirelepress) var HTTP_PORT - process. . Il app.use(express.static publie'))

question 2 javascript
question 2 javascript ISON ring in the wing form Note: ame, t
war express - he wirelepress) var HTTP_PORT - process. . Il app.use(express.static
publie')) appisten HTTP PORT, 0 =>{ conso r GT Once o me
orghe the 2. Fin the gaps in the fingers c uningd eware

ISON ring in the wing form Note: ame, t war express - he wirelepress) var HTTP_PORT - process. . Il app.use(express.static publie')) appisten HTTP PORT, 0 =>{ conso r GT Once o me orghe the 2. Fin the gaps in the fingers c uningd eware to process the form' POST S ISON string in the flowing format mesa "Sudent Po w ded var express require("express): war app express) : var ITP PORT = process.ew.PORT II app.use(express. statie publie')) serveristening or HTTP PORT):: app Isten HTTP PORTO -> ( console.log("press Student Number Question 2 (11 Marks): 1. Recreate the html form (right) using valid HTML according to the following specification: (4 marks] Your form MUST submit using "POST" to "/addStudent You are ONLY required to code the form sform>... part, not entire document. No

2. Fill in the gaps in the following server.js code to process data posted from above form, including the code o using middleware to process the form's POST submission. Once receive the form, the server should return a JSON string in the following format: [7 marks] {message: "Student: fullName (studentNum, Pogram: program) successfully added"} Note: fullName, student Num, and program represent the values entered by user. var express = require("express"); var app = express(); var var HTTP_PORT = process.env.PORT || 8880; app.use(express.static('public')); pp.listen(HTTP_PORT, 0 => { console.log("Express http server listening on:" + HTTP_PORT); })

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!