最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin7浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论