Sending client data to server and on webpage using nodemcu

Hi to all plz help me for above topic. I am making a logic for sensor connectedwith a client and their data send to server. I also want to view that data as a html webpage. My first part is completed client to server communication and data sebd ti server but how I used this data as a html? Plz help me.

TakeOneClient.ino (6.31 KB)

TakeOneServer.ino (5.63 KB)

and data sebd ti server

And what? Google translate failed to properly decipher that gibberish.

but how I used this data as a html?

You have a server that has received some data, and done something with it. You write some code to run on that server that access the stored data and returns html that embeds that data.

    if(reading == HIGH)
    {
      currentState = 1;
    }
    else {
    currentState = 0;
    }

Lots of code to do

  currentState = reading;
      if(currentState == 1)
      {
        counter = ((counter + 1)/60);
        Serial.println("<" + ButtonColor + "-SCORED>");
        TKDClient.println("<" + ButtonColor + "-SCORED>");
        
        if(reading == LOW)
        {

You seem to think that currentState and reading can possibly contain different values. Clearly, they can not, so this code makes no sense.

        if (!TKDClient[i] || !TKDClient[i].connected())
        {
          if(TKDClient[i]) TKDClient[i].stop();
          TKDClient[i] = TKDServer.available();
          Serial.print("New Client : "); Serial.print(String(i+1) + " - ");
          continue;
        }

Continue? Looks to me like you want to break out of the for loop when you've found a spot for the server, rather than keep looking.

Your server serves up the same kind of response regardless of what a client asked for. That will NOT do, when the client is a web browser looking to display some mysterious data that you don't appear to have actually saved.