esp8266 POST problem how to return to home?

HTML is not my bag.

But here goes. Have almost everything working.
But when I do my submit, the url stays in the 192.168.1.25/submit

Hitting the back button works, but I need to to return without user intervention.

Using the ESP8266WebServer & page for the HTML

I've tired a (at the end of the handler):

handleRoot();
server.send ( 200, "text/html", getPage() );

but no joy.
What simple dumb nooby thing am I missing?

TIA
HH

Just use an HTTP redirect:

server.sendHeader("Location","/");        // Add a header to respond with a new location for the browser to go to the home page again
server.send(303);                         // Send it back to the browser with an HTTP status 303 (See Other) to redirect

Pieter

Thank you Pieter!
Worked like a champ.
I owe you a beer!

HH

Glad to hear!

Thank You so much for this info!!!