Page 1 of 1

Example of how to manage reply from HTML FORM with POST method?

Posted: Thu Apr 11, 2019 12:23 pm
by gpezzella
Hello
I have create an AP on ESP32.
It scan net, found all SSID and create on the fly a simply htm page:

Code: Select all

<!DOCTYPE html>
<html>
<head>
   <title>Setup</title>
</head>
<body>
   <form action='setup.htm' method = POST>
   <select name='SSID_NAME' size='4'>
   <option value='Home&Life'>Home&Life </option>
   <option value='Vodafone>Vodafone </option>
   <option value='TIM>TIM</option>
   </select>   <br>
   <input type='text' name='SSID_NAME' placeholder='password' />
   <br>
   <input type='submit' value='Connect />
   </form>
</body>

Now I should take SSID name and password value.

Have you some working example?

Thanks

Re: Example of how to manage reply from HTML FORM with POST method?

Posted: Thu Apr 11, 2019 12:46 pm
by Deouss
I'd use ajax/json instead of form post