Hope this hasn't be covered before, didn't see anything in the search results. I have a sketch which runs a webserver, with multiple pages, using:-
server.on("/", handleRoot);
server.on("/config", handleConfig);
the config page has a form to submit data (via get) which is written to eeprom, an example field
<form method='get' action='a'><label>SSID: </label><input name='ssid' length=32><BR>"
once this form is submitted, how would I go about handling the request for the page which starts with "/a?ssid=" ? I want something that allows wildcards, as the data entered will vary, but not quite sure how to do this in code. Something like
server.on("/a?ssid=***********", handleConfig)
I have seen an example where the request is monitored using an if statement, like this:-
if ( req.startsWith("/a?ssid=") ) {
But I wanted to use the server.on format. Any help much appreciated.