HTML buttons problem

Hi all, I am not sure whether i had to open new topic, but i couldn't find information for my problem anywhere.
I will be really appreciate if someone help with my project. I am new in Arduino.

So ... i want to make watering system in my garden. i have arduino uno and ethernet shield, (led and potenciometer for test)
i found examples which i can turn led on and off and i added new buttons "auto" and "manual". I want with button auto to turn the system reading humidity sensors and with button 'manual' turn into manual mode and switch the led on and off.
I just can't do that in many tryings so i decided to write here if someone want to help me with it.

this is my code but it's doesen't work and i don't know where the problem is:

arduino.txt (4.49 KB)

You should always post your sketch directly in the forum post, rather than as an attachment. Only use an attachment if the sketch is longer than the forum allows, which yours is not. This will make it much more likely for you to get help.

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor you will not have access to this useful tool. I recommend you to use the standard IDE instead.

Please remove unnecessary blank lines from your code before posting to the forum. One or two to separate code into logical sections is fine but large spaces for no reason just make for more scrolling when we're trying to read your code.

Please explain exactly what you meant by "it's doesen't work".