Django / python: how to get the value of a text field and store it into a variable -


i new django , python: text user types text field , store variable when submit button form. text 5 characters long. form:

<h4>enter id</h4> <form action="/login/" method="get">     <input type="text" name="kodikos" id="kodikos" maxlength="5" placeholder = "password">     <input class="btn btn-primary btn-md" type="submit" value="go"> </form>  <ul id="results"> {% user in data1 %}                 <li>  id: {{user.emp_no}} - last name: {{user.last_name}} </li>               {% endfor %} </ul> 

i want kodikos value , compare data1. can't find how value. need javascript? tried still can't value. also, how can happen after user hits submit button?


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -