title: Pass the id of button from django template to a view
body: <p>Below is my views.py file</p>
  
  <pre><code>def view_approval(request):   
  
      utype = request.POST.get('butn')
      print utype
      if utype == 'APP':
          #certain set of funtions
      if utype == 'SRC':
          #certain set of funtions
      else:
          #certain set of funtions
  </code></pre>
  
  <p>And the HTML file:</p>
  
  <pre><code>&lt;form  name="feedback22" action="{% url 'view_approval' %}" method="post"&gt;
  {% csrf_token %}
         &lt;input id="bdyBtn" type="button" name="butn" value="APP" data-toggle="modal" data-target="#appModal" &gt;
         &lt;input id="bdyBtn" type="button" name="butn" value="SRC" data-toggle="modal" data-target="#srcModal" &gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have two modals in my HTML page, used for uploading two Excel sheets. So I created a Django view named <code>view_approval</code> and placed the code inside it. The code gets executed depending upon the input button clicked. But the issue is, the value of the input button is not reaching the views.
  When I printed the value using a print inside the view, it showed a value "None"</p>
  
  <p>Thanks in advance!! </p>