webserver for temperature sensor

Hi, i'm trying to figure out how to show in a continuos loop the temperature on the arduino webserver and change an arlarm variable with two buttons (plus button and minus button).
This should allow me to make a buzzer play a tone if the actual temperature reaches the value i decide with the buttons + or -

I have realized the following but it's not working the way i want :

#include <SPI.h>
#include <Ethernet.h>
int pos = 0;
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = { 192, 168, 1, 20 }; // ip in lan (that's what you need to use in your browser. ("192.168.1.178")
byte gateway[] = { 192, 168, 1, 1 }; // internet access via router
byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
EthernetServer server(80); //server port
String readString;
int temp_soglia = 18;
int temp_allarme = 22;

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
// start the Ethernet connection and the server:
Ethernet.begin(mac, ip, gateway, subnet);
server.begin();
Serial.print("Server IP : ");
Serial.println(Ethernet.localIP());
}

void loop() {
// Create a client connection
EthernetClient client = server.available();

client.println("");
client.print("Temperatura di soglia = ");
client.print(temp_soglia);
client.println("
");
client.print("Temperatura d'allarme = ");
client.print(temp_allarme);
client.println("
");
client.println("");

if (client) {
while (client.connected()) {

if (client.available()) {
char c = client.read();

//read char by char HTTP request
if (readString.length() < 100) {
//store characters to string
readString += c;
//Serial.print(c);
}

//if HTTP request has ended
if (c == '\n') {
Serial.print("Valore readstring = ");
Serial.println(readString); //print to serial monitor for debuging

client.println("HTTP/1.1 200 OK"); //send new page
client.println("Content-Type: text/html");
client.println();
client.println("");
client.println("");
client.println("");
client.println("");
client.println("Cat House Monitoring");
client.println("");
client.println("");
client.println("

Progetto di monitoraggio temperatura

");
client.println("
");
client.println("
");
client.println("

Arduino con Ethernet Shield

");
client.println("
");

client.print("Temperatura di soglia = ");
client.print(temp_soglia);
client.print(" ");
client.print("<a href="/?plus_soglia"">Piu");
client.print(" ");
client.println("<a href="/?minus_soglia"">Meno
");
client.println("
");

client.print("Temperatura di allarme = ");
client.print(temp_allarme);
client.print(" ");
client.print("<a href="/?plus_allarme"">Piu");
client.print(" ");
client.print("<a href="/?minus_allarme"">Meno
");
client.println("
");
client.println("
");
client.println("");
client.println("");

delay(1);
//stopping client
client.stop();
//controls the Arduino if you press the buttons
if (readString.indexOf("?plus_soglia") >0){
temp_soglia = temp_soglia +1 ;
}
if (readString.indexOf("?minus_soglia") >0){
temp_soglia = temp_soglia -1 ;
}
if (readString.indexOf("?plus_allarme") >0){
temp_allarme = temp_allarme +1 ;
}
if (readString.indexOf("?minus_allarme") >0){
temp_allarme = temp_allarme -1 ;
}
//clearing string for next read
readString="";
client.print("<meta http-equiv="refresh" content="0">");
client.println("");

}
}
}
}
}

Can someone help me please ?
I just can't understand how to get on the same page the continuos values of temperature reading and the ability to change the value of temp_soglia or temp_allarme in ordere to be able to recall a certain void for allarm.

I just can't understand how to get on the same page the continuos values of temperature reading and the ability to change the value of temp_soglia or temp_allarme in ordere to be able to recall a certain void for allarm.

Below is some code that displays data in an embedded frame in a web page. You probably could add to the code a text box to send data to the the server.

// zoomkat's meta refresh data frame test page 5/25/13
// use http://192.168.1.102:84 in your brouser for main page
// http://192.168.1.102:84/data static data page
// http://192.168.1.102:84/datastart meta refresh data page
// for use with W5100 based ethernet shields
// set the refresh rate to 0 for fastest update
// use STOP for single data updates

#include <SPI.h>
#include <Ethernet.h>

const int analogInPin0 = A0;
const int analogInPin1 = A1;
const int analogInPin2 = A2;
const int analogInPin3 = A3;
const int analogInPin4 = A4;
const int analogInPin5 = A5;

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = { 192, 168, 1, 102 }; // arduino ip in lan
byte gateway[] = { 192, 168, 1, 1 }; // internet access via router
byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
EthernetServer server(84); //server port
unsigned long int x=0; //set refresh counter to 0
String readString; 

//////////////////////

void setup(){
  Serial.begin(9600);
    // disable SD SPI if memory card in the uSD slot
  pinMode(4,OUTPUT);
  digitalWrite(4,HIGH);

  Ethernet.begin(mac, ip, gateway, gateway, subnet);
  server.begin();
  Serial.println("meta refresh data frame test 5/25/13"); // so I can keep track of what is loaded
}

void loop(){
  EthernetClient client = server.available();
  if (client) {
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
         if (readString.length() < 100) {
          readString += c; 
         } 
        //check if HTTP request has ended
        if (c == '\n') {

          //check get atring received
          Serial.println(readString);

          //output HTML data header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();

          //generate data page
          if(readString.indexOf("data") >0) {  //checks for "data" page
            x=x+1; //page upload counter
            client.print("<HTML><HEAD>");
            //meta-refresh page every 1 seconds if "datastart" page
            if(readString.indexOf("datastart") >0) client.print("<meta http-equiv='refresh' content='1'>"); 
            //meta-refresh 0 for fast data
            if(readString.indexOf("datafast") >0) client.print("<meta http-equiv='refresh' content='0'>"); 
            client.print("<title>Zoomkat's meta-refresh test</title></head><BODY>
");
            client.print("page refresh number: ");
            client.print(x); //current refresh count
            client.print("

");
            
              //output the value of each analog input pin
            client.print("analog input0 is: ");
            client.print(analogRead(analogInPin0));
            
            client.print("
analog input1 is: ");
            client.print(analogRead(analogInPin1));
                        
            client.print("
analog input2 is: ");
            client.print(analogRead(analogInPin2));
            
            client.print("
analog input3 is: ");
            client.print(analogRead(analogInPin3));
                                    
            client.print("
analog input4 is: ");
            client.print(analogRead(analogInPin4));
            
            client.print("
analog input5 is: ");
            client.print(analogRead(analogInPin5));
            client.println("
</BODY></HTML>");
           }
          //generate main page with iframe
          else
          {
            client.print("<HTML><HEAD><TITLE>Zoomkat's frame refresh test</TITLE></HEAD>");
            client.print("Zoomkat's Arduino frame meta refresh test 5/25/13");
            client.print("

Arduino analog input data frame:
");
            client.print("&nbsp;&nbsp;<a href='/datastart' target='DataBox' title=''yy''>META-REFRESH</a>");
            client.print("&nbsp;&nbsp;&nbsp;&nbsp;<a href='/data' target='DataBox' title=''xx''>SINGLE-STOP</a>");
            client.print("&nbsp;&nbsp;&nbsp;&nbsp;<a href='/datafast' target='DataBox' title=''zz''>FAST-DATA</a>
");
            client.print("<iframe src='/data' width='350' height='250' name='DataBox'>");
            client.print("</iframe>
</HTML>");
          }
          delay(1);
          //stopping client
          client.stop();
          //clearing string for next read
          readString="";
        }
      }
    }
  }
}

THanks very much for your help.
Your example did work but when i adapted it at my code it was buggy and not working properly.
I discovered right now that all was due to memory nearly complete and i had to use the following statement (example) : client.print(F("Intensita' luce : ")); instead of client.print("Intensita' luce : "); in order to use programs memory instead of the other and all went fine.

Thanks so much again.