admin管理员组文章数量:1401673
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.
本文标签: Asyncio webserver store HTML dropdown option in Python variableStack Overflow
版权声明:本文标题:Asyncio webserver store HTML dropdown option in Python variable - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744303235a2599684.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论