Asyncio webserver store HTML dropdown option in Python variable - Stack Overflow

Im trying to run webserver beneath my main python script on my ESP32.I want to display a HTML dropdown

Im trying to run webserver beneath my main python script on my ESP32. I want to display a HTML dropdown menu on the webserver and store the value in a Python variable.

Here is a option of this dropdown menu and the submit

<select name="dropdown" id="dropdown">
<option value="649">McMiller</option>
</select>
<br>
<form action="./sendToESP">
<input type="submit" value="Send!" />
</form>

From a tutorial i found, that i can call the request with:

if request == '/sendToESP?':

but i cant find any information to store the value 649 in a Python variable.

I tried some variable calls with /sendToESP request but always ended in errors.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744303235a4567603.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信