title: How to get variable value from html into views.py in django
body: <p><strong>html code:</strong></p>
  
  <pre><code>{% for data in top_100_active_webshells_tuple %}
    &lt;tr&gt;
      &lt;td&gt;{{ data.0 }}&lt;/td&gt;
      &lt;td&gt;{{ data.1 }}&lt;/td&gt;       
      &lt;td&gt;{{ data.2 }}&lt;/td&gt;
      &lt;td&gt;&lt;form action="/my_image/" method="POST"&gt;
        {% csrf_token %}
          &lt;input id ="my_input" type="submit" class="btn" name="{{ data.3 }}" value="image" style="background:white;color:black;border:3px solid grey"/&gt;
  &lt;/form&gt;
       &lt;/td&gt;
    &lt;/tr&gt;
  {% endfor %}
  </code></pre>
  
  <p><strong>views.py function:</strong></p>
  
  <pre><code>def my_image(request):
  
      if "data.3" in request.GET:
          address=request.GET["data.3"]
          resp="address is "+address
          return HttpResponse(resp)
      else:
          return HttpResponse("error here")
  </code></pre>
  
  <p><br>
  <strong>Question:</strong>
   Question is that i can't get value stored in variable "data.3 "in the function named<br> 
  <em>def my_image(request)</em>
  <br><br>
  And else statement is printed when i click input button,how to fix it and get variable value in <em>views.py</em>
  <br>
  Please reply as soon as possible.</p>