I changed the handleRoot function to:
void handleRoot() {
String htmlDoc = { "<!DOCTYPE html>"
"<html>"
"<head>"
"<title>Clock Settings</title>"
"</head>"
"<body>"
"<form method=\"post\">"
"<input type=\"submit\" name=\"clk_action\" value=\"RESET\">"
"</form>"
"</body>"
"</html>"};
webserver.send(200, "text/plain", htmlDoc);
}
I figured I would try to create a simple page, but it didn't actually create the page, it just posted the text. What am I doing wrong?
And I'm not quite clear, how do I read back the data in the form? Is it automatically placed in webserver.args()?