How to access POST form fields in Express
Things have changed once again starting Express 4.16.0, you can now use express.json() and express.urlencoded() just like in Express 3.0. This was different starting Express 4.0 to 4.15: $ npm install –save body-parser and then: var bodyParser = require(‘body-parser’) app.use( bodyParser.json() ); // to support JSON-encoded bodies app.use(bodyParser.urlencoded({ // to support URL-encoded bodies extended: true … Read more