title: How to get value from ejs to node js file
body: <p>This is the value i used to input data using ejs</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form method="post" action="/"&gt;
  &lt;input type="text" name="user[name]"&gt;
  &lt;input type="text" name="user[email]"&gt;
  &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and this is the node js code </p>
  
  <pre><code>  var express = require("express");
    var app     = express();
    var bodyParser = require("body-parser")
  
   app.use(bodyParser.json());
   app.use(bodyParser.urlencoded({
   extended: true
   }));
  
  app.post('/', function(request, response){
  
  console.log(request.body.user.name);
  console.log(request.body.user.email);
  
  });
  
  app.listen(3000);
  console.log('Server running at http://127.0.0.1:3000');
  </code></pre>
  
  <p>when i run this there is no error but page not load? can anyone give me solution.</p>