title: How to get values from text area from ejs. Bootstrap, Node JS
body: <p>I have a Bootstrap forms in my "EJS" file and "SAVE" button on the bottom.
  When i press "SAVE", i want to store data from fields to my DB.</p>
  
  <p>The problem is that in the function which executes on post - "req.body" is empty.
  So there is a logical problem, but i can't get what is exactly.</p>
  
  <p>Here is my code:</p>
  
  <p>EJS</p>
  
  <pre><code>&lt;div id = "container"&gt;
      &lt;form class="form-horizontal" role="form" method="post"&gt;
         &lt;div class="form-group"&gt;
             &lt;label for="inputEmail3" class="col-sm-2 control-label"&gt;First Name&lt;/label&gt;
             &lt;div class="col-sm-10"&gt;
                &lt;input type="text" class="form-control" id="inputFirstName3" placeholder= &lt;%= user.profile.name %&gt; &gt;
             &lt;/div&gt;
         &lt;/div&gt;
         .
         .
         .
         &lt;div class="form-group"&gt;
            &lt;button type="submit" class="btn btn-primary"&gt;Save&lt;/button&gt;
         &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>APP.JS</p>
  
  <pre><code>app.get("/edit", permissions.requireActiveRole, edituserprofile.editMyProfile);
  
  app.post("/edit", permissions.requireActiveRole, edituserprofile.saveChanges);
  </code></pre>
  
  <p>saveChanges() function in separate JS file</p>
  
  <pre><code>exports.saveChanges = function (req, res) {
      console.log(req.body); ////  logs {}, data from ejs fields should be here!
  }
  </code></pre>
  
  <p>I hope my question is clear, Thanks a lot!</p>