         if (ckname == "RLY2"){Relay2.TurnOn();server.print("2 ON");}
         if (ckname == "RLY3"){Relay3.TurnOn();server.print("3 ON");}
         if (ckname == "RLY4"){Relay4.TurnOn();server.print("4 ON");}
-        if (ckname == "GETINFO"){
+        
+        }
+      }
+    }
+  if (type == WebServer::POST)
+  {
+    server.printP(Post_params_begin);
+    while (server.nextURLparam(&url_tail, name, NAMELEN, value, VALUELEN))
+    {
+      server.print(name);
+      server.printP(Parsed_item_separator);
+      server.print(value);
+      server.printP(Tail_end);
+    }
+  }
+  server.printP(Page_end);
+
+}
+
+
+void getInfo(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete)
+{
+  URLPARAM_RESULT rc;
+  char name[NAMELEN];
+  int  name_len;
+  char value[VALUELEN];
+  int value_len;
+
+  /* this line sends the standard "we're all OK" headers back to the
+     browser */
+  server.httpSuccess();
+
+  /* if we're handling a GET or POST, we can output our data here.
+     For a HEAD request, we just stop after outputting headers. */
+  if (type == WebServer::HEAD)
+    return;
+
+
+        
+        String ckname = name;
+        String ckvalue = value;
             float h = dht.readHumidity();
             float t = dht.readTemperature();
 

  /*This command  is called if you try to load /raw.html */
  webserver.addCommand("raw.html", &rawCmd);
  webserver.addCommand("parsed.html", &parsedCmd);

  /* start the webserver */
  webserver.begin();
}


            char bbuffer[5];

            String data1 = "ARD1";
            char test[20];

            String myold = "{ \"MYDT\" : [ { \"device_name\" : \"" + data1 + "\"}, ";
            myold = myold + "{ \"sensor\" : \"temperature\" , \"value\" : \"" + String(floatToString(test,t,2,4)) + "\"},";
            myold = myold + "{ \"sensor\" : \"humidity\" , \"value\" : \"" + String(floatToString(test,h,2,4)) + "\"},";
            myold = myold + "{ \"sensor\" : \"light\" , \"value\" : \"" + String(lhtval) + "\"},";
            myold = myold + "{ \"sensor\" : \"flow1\" , \"value\" : \"" + String(random(0,5)) + "\"},";
            myold = myold + "{ \"sensor\" : \"flow2\" , \"value\" : \"" + String(random(6,10)) + "\"},";
            myold = myold + "{ \"sensor\" : \"relay1_state\" , \"value\" : \"" + String(Relay1.State()*5) +  "\", \"description\" : \"" + Relay1.Desc() + "\"},";
            myold = myold + "{ \"sensor\" : \"relay2_state\" , \"value\" : \"" + String(Relay2.State()*10) + "\", \"description\" : \"" + Relay2.Desc() + "\"},";
            myold = myold + "{ \"sensor\" : \"relay3_state\" , \"value\" : \"" + String(Relay3.State()*15) + "\", \"description\" : \"" + Relay3.Desc() + "\"},";
            myold = myold + "{ \"sensor\" : \"relay4_state\" , \"value\" : \"" + String(Relay4.State()*20) + "\", \"description\" : \"" + Relay4.Desc() + "\"},";
            myold = myold + "{ \"sensor\" : \"analog1\" , \"value\" : \"" + String(analogRead(A1)) + "\"},";
            myold = myold + "{ \"sensor\" : \"analog2\" , \"value\" : \"" + String(analogRead(A2)) + "\"},";
            myold = myold + "{ \"sensor\" : \"analog3\" , \"value\" : \"" + String(analogRead(A3)) + "\"},";
            myold = myold + "{ \"sensor\" : \"analog4\" , \"value\" : \"" + String(analogRead(A4)) + "\"} ] }";

            server.print(myold);
        
        


}


void my_failCmd(WebServer &server, WebServer::ConnectionType type, char *url_tail, bool tail_complete)
{
