title: Django / python: how to get the value of a text field and store it into a variable
body: <p>I am new to django and python: I would like to get the text the user types into a text field and store it into a variable when they submit button a form. The text is 5 characters long.
  This is my form:</p>
  
  <pre><code>&lt;h4&gt;Enter your ID&lt;/h4&gt;
  &lt;form action="/login/" method="get"&gt;
      &lt;input type="text" name="kodikos" id="kodikos" maxlength="5" placeholder = "Password"&gt;
      &lt;input class="btn btn-primary btn-md" type="submit" value="Go"&gt;
  &lt;/form&gt;
  
  &lt;ul id="results"&gt;
  {% for user in data1 %}            
      &lt;li&gt;  ID: {{user.emp_no}} - Last name: {{user.last_name}} &lt;/li&gt;              
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want to get the <code>kodikos</code> value and compare it with <code>data1</code>. I can't find how to get this value. Do I need Javascript? I tried it but still can't get this value. Also, how can all this happen after the user hits the submit button?</p>