title: How to send an HTML form POST request using the HTML button tag?
body: <p>As of now, I have a user-input structure where the user provides their username/password then clicks either "login" or register" which then ends a post request with that information.</p>
  
  <pre><code>&lt;form action="{% url 'users:login' %}" method = "post"&gt;
      Username: &lt;input type="text" name="username"&gt;&lt;br&gt;
      Password: &lt;input type="password" name="passwd"&gt;&lt;br&gt;
      &lt;input type="submit" name="login" value="Log In"&gt;
      &lt;input type="submit" name="adduser" value="Add User"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>What I want is to replace the two  submit buttons with  tags, i.e.:</p>
  
  <pre><code>&lt;form class="control-group" action="{% url 'users:login' %}" method = "post"&gt;
       &lt;input type="text" placeholder="Username" name="username"&gt;
       &lt;input type="password" placeholder="Password" name="passwd"&gt;
       &lt;button class="button-style"&gt;Login&lt;/button&gt;
       &lt;button class="button-style"&gt;Register&lt;/button&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>But I'm unsure how to, for example, send the form's POST request with the correct information (username, password, type (login or register)) as I do in the first example.</p>