HTML action on an arduino variable


I am trying to see my thermostat on a webpage and control the desired room temperature with two buttons from the HTML page.
I am using a enc28J60 ethernet module, and the ethercard library.

The temperature sensor part of the program is working, but i dont know how to change some varibles using the buttons on the HTML page.

Here is how i write the html page in my arduino web server.

BufferFiller bfill = ether.tcpOffset();
bfill.emit_p(PSTR(“HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nPragma: no-cache\r\n\r\n”));



Temperatura in camera este:


Temperatura dorita este:

bfill.emit_p(PSTR(”<input type=submit value=“Temp +”>”));
bfill.emit_p(PSTR("<input type=submit value=“Temp -”>"));

Now i dont know how to see what the arduino sees when i push the buttons?
And if arduino doesnt see anything how to make it see my push of the buttons?

If you need more of my code let me know.

Do a Google search for "HTML forms".

That doesnt help very much. Ok the press of the button might send 1 or 2 value, but how do i see it in Arduino? I am pretty new to this stuff.

but how do i see it in Arduino?

You have a submit button, right? That causes a GET request to be sent to the server. Capture that get request (I believe the library does this for you). Then, parse the get request. The request for the page initially might look like "GET /temp.htm HTTP 1.0". After the submit, the request might look like "GET /temp.htm?Temp%20+ HTTP 1.0" or "GET /temp.htm?Temp%20- HTTP 1.0". You'll have to determine what the exact request looks like, and pick out the part that says up or down. The strtok() function is interesting.