Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express get form x-www-form-urlencoded

const express = require('express');
app.use(express.urlencoded({ extended: true }));

app.post('/api/', function(req, res) {
  console.log( req.body.usernameFormInput );
  console.log( req.body.emailFormInput );
  ...
});
 
PREVIOUS NEXT
Tagged: #express #form
ADD COMMENT
Topic
Name
5+6 =