title: NodeJS Post request using a Button
body: <p>I don't know if this is possible or not. All the research I've done has shown that it is possible with a form and text input. But anyways, Using NodeJs &amp; Express I want to be able to click a button on my webpage, and once it's clicked, it sends a post request to my Node.JS server.</p>
  
  <p>Simpler way of saying it:
  When button is clicked, send info to the server.</p>
  
  <p>Goal I'm trying to achieve:
  When button is clicked, it sends some sort of ID/code/anything to turn on a service from my database. (I have yet to learn how db's work so I am just trying to focus on front end.)</p>
  
  <p>Code I have so far:</p>
  
  <pre><code>app.post("/send", function(req, res){
    var newID = req.body.ID;
    res.redirect("/action")
  });
  
  &lt;form action="/send" method="POST"&gt;
      &lt;input type="button" name="newID" placeholder="Button"&gt;
      &lt;button&gt;send&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>