title: Two Submit Buttons - node js express
body: <p>I only know how to do a single post function from a node js app. I want to implement a like and dislike function but I can only do one at a time. Here's the html code:</p>
  
  <pre><code>&lt;form method="post" name="ratings"&gt;
      &lt;input type="submit" name="vote" value="like"&gt;
      &lt;input type="submit" name="vote" value="dislike"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I can do a single post function, but how would I split it up depending on the html button selection. Can I extract the value in my index.ts file. I'm working in typescript, and this is the first line of the index.ts code that I would begin with</p>
  
  <pre><code>router.post('/testpage/*', function (req, res) {
  </code></pre>