title: How to get the value of input on button click in django
body: <p>I have a django template as follows</p>
  <pre><code>&lt;table class=&quot;table&quot;&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;#&lt;/th&gt;
              &lt;th&gt;Master Title&lt;/th&gt;
              &lt;th&gt;Retailer title&lt;/th&gt;
              &lt;th&gt;To add&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          {% if d %}
          {% for i in d %}
          &lt;tr&gt;
              &lt;th scope=&quot;row&quot;&gt;{{forloop.counter}}&lt;/th&gt;
              &lt;td&gt;{{i.col1}}&lt;/td&gt;
              &lt;td&gt;{{i.col2}}&lt;/td&gt;
              &lt;td&gt;
                  &lt;input type=&quot;hidden&quot; name='row_value' value=&quot;{{i.col1}}|{{i.col2}}&quot;&gt;
                  &lt;a class='btn btn-success' href=&quot;{% url 'match' %}&quot;&gt;Match&lt;/a&gt;
                  &lt;a class='btn btn-outline-danger' href=&quot;{% url 'mismatch' %}&quot;&gt;Not a Match&lt;/a&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          {% endfor %}
          {% endif %}
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>When the match button is clicked, I want to retrieve the value of the hidden input in the views. Here is my views.py</p>
  <pre><code>def match(request):
      print(request.GET.get('row_value'))
      print('match')
  </code></pre>
  <p>But this returns None.</p>
  <p>I want the values of col1 and col2 to be printed as follows</p>
  <pre><code>col1|col2
  </code></pre>
  <p>I am not sure where I am going wrong.</p>