Dropdown Menus in ESP32 Webserver Arduino

Anyone know how to integrate drop down menus in ESP32 Webserver?? i want get the drop down menus data and save it in the EEPROM (get the data from individual drop down menu or couple of drop dwon menus at once) any one know any good tutorial for this. i am nebie in this place

seems more an HTML question than an Arduino one

look at the select tag

try some code here W3Schools Tryit Editor

you'll also need to look at forms and submit buttons

if you duplicate the pull-down menu like this

<!DOCTYPE html>
<html>
<body>

<h2>The select Element</h2>

<p>The select element defines a drop-down list:</p>

<form action="/action_page.php">
  <label for="cars1">Choose a first car:</label>
  <select id="cars1" name="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="fiat">Fiat</option>
    <option value="audi">Audi</option>  
  </select>
  <br>
  <label for="cars2">Choose a second car:</label>

    <select id="cars2" name="cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="fiat">Fiat</option>
    <option value="audi">Audi</option>
  </select>
  <br>
  <input type="submit">
</form>

</body>
</html>

and paste that in the simulator and run it, you'll see that you now have 2 values in the GET request (like cars=saab&cars=fiat)


using GitHub - me-no-dev/ESPAsyncWebServer: Async Web Server for ESP8266 and ESP32 will make developing the server side easier

Thank you!!!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.