webServer displaying page how to?
Posted: Fri Aug 19, 2016 11:05 pm
Simple question that has me flummoxed.
I have a simple webpage that allows me to collect some text and send it back to the ESP8266. That works fine. It does it by generating a new URL such as http://192.168.0.103/msg?HR1=23&MIN1=01, which it tries to display in the browser, which of course does not exist on the ESP 8266 server, and I get an error screen on the browser in return.
How can I get it to return the data and still show a screen of my choice in response?
The HTML line used is:
"<form action= 'msg'>Reminder 3 - Hour:<input type='text' name='HR2' size='2' maxlength='2'>Min:<input type='text' name='MIN2' size='2' maxlength='2'> <input type='submit' value='Set'> </form>"
I have a simple webpage that allows me to collect some text and send it back to the ESP8266. That works fine. It does it by generating a new URL such as http://192.168.0.103/msg?HR1=23&MIN1=01, which it tries to display in the browser, which of course does not exist on the ESP 8266 server, and I get an error screen on the browser in return.
How can I get it to return the data and still show a screen of my choice in response?
The HTML line used is:
"<form action= 'msg'>Reminder 3 - Hour:<input type='text' name='HR2' size='2' maxlength='2'>Min:<input type='text' name='MIN2' size='2' maxlength='2'> <input type='submit' value='Set'> </form>"