title: Can a HTML button perform a POST request?
body: <p>I want a submit type button to send a POST request.</p>
  <p>I am thinking about something like this:</p>
  <pre><code>&lt;form action = &quot;&quot; method = &quot;post&quot;&gt;
      &lt;button&gt;Upvote&lt;/button&gt;
  &lt;form&gt;
  </code></pre>
  <p>where the string &quot;Upvote&quot; will be send as a name in the POST request.</p>
  <p>I know this is not working, and I know there are ways using AJAX(javascript) but I am fairly new to this area. I am just wondering if this is possible in general.</p>
  <p><strong>Update</strong></p>
  <p>Someone suggested using the <code>&lt;input&gt;</code> tag, and I tried it. The problem is it generates a GET rather than a POST.</p>