  
     
 }
-
-
+*/
+

        while (client.connected()) {
            if (client.available()) {   // client data available to read
                char c = client.read(); // read 1 byte (character) from client
                HTTP_req += c;  // save the HTTP request 1 char at a time
                // last line of client request is blank and ends with \n
                // respond to client only after last line received
                if (c == '\n' && currentLineIsBlank) {
                    // send a standard http response header
                    client.println("HTTP/1.1 200 OK");
                    client.println("Content-Type: text/html");
                    client.println("Connection: close");
                    client.println();
                    // send web page
                    client.println("<!DOCTYPE html>");
                    client.println("<html>");
                    client.println("<head>");
                    client.println("<title>Arduino LED Control</title>");
                    client.println("</head>");
                    client.println("<body>");
                    client.println("<h1>LED</h1>");
                    client.println("<p>Click to switch LED on and off.</p>");
                    client.println("<form method=\"get\">");
                    ProcessCheckbox(client);
                    client.println("</form>");
                    
                    processButton(client);
                    
       
                    client.println("</body>");
                    client.println("</html>");
                    Serial.print(HTTP_req);
                    HTTP_req = "";    // finished with request, empty string
                    break;
                }
                // every line of text received from the client ends with \r\n

    else{
//      client.println("<h3> button not pressed </h3>");
      digitalWrite(redled,LOW);
    } */
    
    //delay(1000);
    
    
    if (LED_status) {    // switch LED on
        digitalWrite(redled, HIGH);
    }
    else {              // switch LED off
        digitalWrite(redled, LOW);
    }
    HTTP_req="nothing";
    //i = 0;
    
    EthernetClient client = server.available();  // try to get client

