title: How to get data from a form dropdown select element?
body: <p>I'm using Express.js and trying to get form data of a dropdown select element,
  I tried with body-parser but what I get with <code>eq.body.method_select</code> is undefined.
  I didn't find much info about how to do this on the web.</p>
  
  <p>Here is my code html code:</p>
  
  <pre><code>  &lt;form action="url_analyse"&gt;
     &lt;div class="col-lg-6"&gt;
  
         &lt;div class="input-group"&gt;
  
             &lt;select class="custom-select mb-2 mr-sm-2 mb-sm-0" name="method_select" id="inlineFormCustomSelect"&gt;
                 &lt;option value="5"&gt;Regular Search (Short)&lt;/option&gt;
                 &lt;option value="10"&gt;Intense Search (Long)&lt;/option&gt;
                 &lt;option value="20"&gt;Deep Search (Very Long)&lt;/option&gt;
             &lt;/select&gt;
  
             &lt;input type="text" name="url_input" class="form-control" placeholder="Enter URL"&gt;
  
            &lt;span class="input-group-btn"&gt;
                  &lt;button class="btn btn-secondary"&gt;Go!&lt;/button&gt;
            &lt;/span&gt;
  
         &lt;/div&gt;
  
  
     &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is my js code: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>app.get('/url_analyse', function(req, res) {
     console.log(req.body.method_select);
  })</code></pre>
  </div>
  </div>
  </p>
  
  <p>Hope you can help me with that.
  Thank you.</p>