Skip to content

DWDatITP/sample-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examining forms

Tools

This uses the following tools and libraries:

Install

  • git clone https://github.com/DWDatITP/sample-forms.git
  • cd sample-forms
  • npm install
  • nodemon server.js
  • visit http://localhost:5000

Adding form handling to your app

If you want to add the ability to handle a form to your existing app you need to:

  • Install the body-parser module and save it to your package.json:
  • npm install body-parser --save
  • Require the body-parser module in your server.js
  • Tell your app to use the body-parser to read incoming requests:
  • app.use(bodyParser.urlencoded({extended:true}));
  • Note: This line MUST come before any app.get or app.post calls.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published