Home > Software engineering >  Multiple select inputs handle using python
Multiple select inputs handle using python

Time:06-13

How to get multiple select inputs using python using a form?

<select name="files" multiple="">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>

CodePudding user response:

U can use "request.form.getlist('name')", It will give you all the submitted inputs together as a list

  • Related