I have created a small app in python flask and in the html file,When i want to search a particular field it searches only after the case matches,ie if i want to search INDIA, it will only show the result when the case matches but when I search india or India it doesn't get searched? what could be the reason for not showing up the result? I later found out from a stackoverflow answer that i need to convert it to uppercase first heres the answer How to let Python recognize both lower and uppercase input?
but how do include it over here?
<input type="text" class="form-control" id="search" name="search" placeholder="search"
value="{{ request.form['search'] }}"></td>
in my py file its if request.method == 'POST':
search = request.form['search'].casefold()
how would something in request.form['search'] get converted to either .casefold() or .upper() or .lower(). Please help me.