Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Send Data Using Express With Post

index.html
<form action="/test" method="POST">
<input name="abc" />
<input type="submit value="submit"/>
</form>

routers/index.js
router.post("/test", function(req, res, next){
res.send(req.body.abc);
}
 
PREVIOUS NEXT
Tagged: #Send #Data #Using #Express #With #Post
ADD COMMENT
Topic
Name
3+4 =