title: NodeJS passing parameter from HTML form
body: <p>I am trying to pass parameter from HTML form to NodeJS router. Routing works as expected but i get undefined for parameter value.</p>
  
  <p>I have done it in a past with parameter being a value of input field. However, this time I am trying to do without fields and send parameter as part of action statement.</p>
  
  <pre><code>&lt;form id="form_sidebar" action="/users/navigation?user_id=UserID" method="POST"&gt; 
    &lt;button id = "btn_button" type='submit'&gt;Button&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>on router side:</p>
  
  <pre><code>router.post('/navigation', (req, res) =&gt; {
    var fname =  req.body['user_id']
    console.log(fname)
  })
  </code></pre>
  
  <p>I was expecting to get UserID printed in the console. But getting undefined.</p>
  
  <p>Any input will be greatly appreciated.</p>