How to read a form field values (Ethernet Shield)

It's not complete but it gives you a place to start. You also need:
#include <WString.h> which you have to download.

void loop(){
  Client client = server.available();
  if (client) 
  {
    while (client.connected()) 
    {
      if (client.available()) 
        {
        char c = client.read();
        if (readString.length() < 100)
            {
            readString.append(c);
          }
        if (c == '\n') 
            {
              //code for pin 8
            if(readString.contains("toggle8"))
                {
             int state = toggle(8);
                  if(debug){ Serial.println("toggle8 received "); Serial.println(state); }
                  client.print("done8");
                  client.print(state);
                 
                }