title: Multiple Submit Buttons - html express node js
body: <p>I'm trying to do a like/dislike system. So essentially, there are two buttons on the html side.</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>However, I only know how to do a single function. How can I seperate it? I'm working in node js.</p>
  
  <p>So, like the first line of code looks like this:</p>
  
  <pre><code>router.post('/test/*', function (req, res) {
  </code></pre>
  
  <p>Like what would the if statement look like in javascript? or do I have to change the html code and do something with onclick? Any response would be appreciated.</p>