Hello everybody. Have a problem with inserting buttons. The target is to print "surprise" to serial (debug ver) after the button is pressed but the problem is that whatever I do on the webpage "surprise" is being printed. Please don't blame the code very much : I'm quite a dummy in programing
void loop()
{
 EthernetClient client = server.available();
Â
LcdPrintTime();
 if(client)
 {
  boolean CLISB=true;
  while(client.connected())
  {
  char c=client.read();
  Serial.print(c);
  HTTP_req += c;
  if (c=='\n' && CLISB)
  {
         Â
  [b]  Serial.println(HTTP_req);
     Serial.println(HTTP_req.length());
     if (HTTP_req.indexOf('vlad')>0)
     {Serial.println("SUPRISE");}
    [/b]Â
          client.println(F("HTTP/1.1 200 OK"));
          client.println(F("Content-Type: text/html"));
          client.println(F("Connection: close"));
          client.println();
          // send web page
          client.println(F("<!DOCTYPE html>"));
          client.println(F("<html>"));
          client.println(F("<head>"));
          client.println(F("<title>Arduino Watering Time Calibration</title>"));
          client.println(F("</head>"));
          client.println(F("<body>"));
          client.println(F("<h1>TIME CALIBRATION</h1>"));
        Â
                   Â
         Â
          client.println(F("<input type=\"submit\">"));
          client.println(F("</form>"));
[b]Â Â Â Â Â Â Â Â Â Â client.println("<a href=\"/?vlad\" >ON</a>");Â [/b]Â Â Â Â Â Â Â
       Â
       Â
          TimeUpdate(client);
        Â
          client.println(F("</body>"));
          client.println(F("</html>"));
          break;
         Â
  }
 Â
  if (c=='\n')
  {CLISB=true;}
  else if (c != '\r')
  {CLISB=false;}
 Â
  }
delay(1);
client.stop();
HTTP_req = "";Â Â // finished with request, empty string
}
}