title: How to get the value from html form and use it in views.py?
body: <p>So I have this line of code in views.py</p>
  
  <pre><code>def display_agao(request):
      query_agao = Butuan_Parcel.objects.filter(newpin="162-01-0001-002-29")
      djf = Django.Django(geodjango='geom',properties=['id','newpin'])
      geoj = GeoJSON.GeoJSON()
      butuan_agao = geoj.encode(djf.decode(query_agao.transform(3857)))
  
      query_subclass = tbl_subclass.objects.all()
      return render(request,"index1.html",{'butuan_agao': butuan_agao, 'query_agao':query_agao,'query_subclass':query_subclass})
  </code></pre>
  
  <p>I want to get the value from the html file and so that I can get a newpin depends on the users query and able to display the layer from the map..</p>
  
  <pre><code>    &lt;form action="." method="GET"&gt;
              &lt;select name="q"&gt;
               {% for parcel in query_agao %}
              &lt;option type="text"  value="{{ parcel.newpin }}"&gt;{{ parcel.newpin }}&lt;/option&gt;
               {% endfor %}
                &lt;/select&gt;
                &lt;input type="submit" value="Search"&gt;
  
          &lt;/form&gt;
  </code></pre>
  
  <p>just sample form above...</p>