I am trying to set up a webserver to control my Arduino pins. I have copied and adapted some useful scripts but I do understand what the '/?on8' and '/?off9' in this HTML code mean or do:
Hard to be 100% sure given the limited context .. Don’t post snippets (Snippets R Us!)
My crystal ball would say That it tells the browser to adds this information to the url when you click the form, which you will then receive on the arduino side, decode and do the right thing
"what the '/?on8' and '/?off9' in this HTML code mean or do:"
Well, it has been a number of years, but those are the commands being sent to the web server. The web server evaluates the string of characters after the ? query string character to determine what is being requested from the client/web page. If the server is an Arduino, then the string received may evaluated for those components after the ? character depending on the code loaded on the Arduino. Something simple like if on8 is detected, pin 8 might be made high, or if off9 is detected, pin 9 might be made low. It just depends on the code and how it is being used.