My HTML form creates a dropdown menu when a checkbox is enabled. It lets me select a channel (from my discord server) and I hit the save button to save the channel id to a database. When the page refreshes, the check box is enabled, but the drop down box is blank, it wont retain the selected option. Because of this, if I hit save again, it clears the database entry because the entry is technically blank. How do I make it retain the selected option after I hit save and the page reloads?
Here is the HTML
https://paste.pythondiscord.com/MD6Q
Endpoint/Database Code
https://paste.pythondiscord.com/IDAA
I am pretty sure my python code is okay, just hoping someone might know if im missing something with the html (I know this is a python help thread).