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

gpezzella
Posts: 50
Joined: Sun Jan 27, 2019 8:04 pm

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

Postby gpezzella » Thu Apr 11, 2019 12:23 pm

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

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

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

Postby Deouss » Thu Apr 11, 2019 12:46 pm

I'd use ajax/json instead of form post

Who is online

Users browsing this forum: No registered users and 95 guests