Unable To Fetch Html Hidden Input Values Into Express App
I'm trying to fetch some hidden form values in post route of my express app,but getting undefined objects in post route,below is some code snippet const express = require('express'
Solution 1:
If you are able to submit form to /postmethod
, add middleware bodyParser.urlencoded()
app.use(bodyParser.urlencoded());
If form is not being submitted, change link to relative url
letlink = "/postmethod";
Check codesandbox
Post a Comment for "Unable To Fetch Html Hidden Input Values Into Express App"