Ethernet shield with Sd card <---> WebPage

hi i want to read a file from Sd card which contains a data of temperature on the time of measurement and write them on Web page. my question: can i put some buttons on the web page to decide to write only the the data from ... to ... i want and not all the file?? thank you very much

my question: can i put some buttons on the web page to decide to write only the the data from ... to ... i want and not all the file??

Of course you can. This is not an Arduino question at all.

thank you for the reply my question is how to interrogate Arduino from the web?

my question is how to interrogate Arduino from the web?

The Arduino has to be running the ethernet server code. You perform a GET request to the Arduino: http://arduinoIP/

Anything following the last slash has to be read on the Arduino, parsed and used to generate output. If nothing follows the slash, then send some initial page.

please do you have any example ot link to read more about?

please do you have any example ot link to read more about?

Yes. And so do you. The IDE comes with about a bazillion examples, including one in the Ethernet library for using the Arduino as an ethernet server. Study that example.

i mean "GET"

i mean "GET"

Have you loaded the Arduino as server code on the Arduino? Have you connected it to a network jack? Have you contacted the Arduino-as-server? Have you looked at the Serial Monitor output?

You are asking about step 67 when you have not demonstrated that you have even opened the playbook.

yes i did all what you told me and this is the program

/*

** CLK - pin 13
** CS - pin 4

*/
#include <SPI.h>
#include <Ethernet.h>
#include <SD.h>

File myFile;

byte mac = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEC };
IPAddress ip(192,168,1, 177);

EthernetServer server(80);
int j=0,d=0;

void setup()
{

Ethernet.begin(mac, ip);
server.begin();

Serial.begin(9600);
Serial.println(“Initializing SD card…”);
// On the Ethernet Shield, CS is pin 4. It’s set as an output by default.
// Note that even if it’s not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.
pinMode(10, OUTPUT);
if (!SD.begin(4)) {
Serial.println(“initialization failed!”);
return;

}
Serial.println(“initialization done.”);

SD.remove(“test2.txt”);
if(!SD.exists(“test2.txt”))Serial.println(" the last file is removed from Sd card");

}

void loop()
{int pin=0;

EthernetClient client = server.available();

if(j==0)
{
Serial.println(“Writing to test2.txt in the Sd_Card…”);
j=1;
}

for(;;){
myFile = SD.open(“test2.txt”, FILE_WRITE);
delay(50);
if(myFile ){
{if(d==0)
Serial.println(“il file aperto in scrittura”);
d=1;}

float temperature=(analogRead(pin)*500.0)/1024.0 ;

myFile.println(temperature);
Serial.println(temperature);
myFile.close();}

while (client) {
Serial.println(“leggo da sd card”);
myFile.close();

myFile = SD.open(“test2.txt”);

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

client.println(“HTTP/1.1 200 OK”);
client.println(“Content-Type: text/html”);
client.println();
client.println("readin test2.txt from the Sd_Card… ");
client.println( "
" );

int k=0;

if (myFile) {

// read from the file until there’s nothing else in it:
while (myFile.available()) {

if (k==0){ Serial.println("");
Serial.println(“sto scrivendo sulla pagina WEB… …”);
Serial.println(""); }
if(k%7 == 0) {
client.println( "
" );

}
char temp =myFile.read();

client.println( temp );

k++;

}

myFile.close();
delay(5);
client.stop();

} else {

Serial.println(“error opening test2.txt for writing on html page”);
}

}
}break;

}delay(5000);

break;
}

}

as u see i didn't use "GET",this is why i 'm asking you,and i'm sorry about that

You really used a smiley face in your code? What does that do, exactly?

Modify your post. Select all the code, and then press the button with the # sign on it. This puts your code in a scrollable box, and prevents interpreting text as control codes.

So, this code is on your Arduino. How do you know that it does anything?