First of all thanks for the help.
I have managed to get the code zoomkat posted working, thanks again it worked fine with minor alterations of the ip in lan and server port [I have set the sever to 80].
I have some questions regarding the code:
Should the led (pin4) remain off(low) once the off button in the web page has been clicked?
....as it is only going off for a moment and back on, i.e one blink.
what is this part of the code doing?
//now output HTML data header
if(readString.indexOf('?') >=0) { //don't send new page
client.println("HTTP/1.1 204 Zoomkat");
client.println();
client.println();
Also this part of the code is confusing me,
void sendGET() //client function to send/receie GET request data.
{
if (client.connect(myserver, 80)) {
Serial.println("connected");
client.println("GET /~shb/arduino.txt HTTP/1.0");
client.println();
....I am assuming the client.println("GET /~shb/arduino.txt HTTP/1.0")
; is calling something and this is returned and printed to the serial port as
HTTP/1.1 200 OK
Date: Sat, 31 Mar 2012 10:11:40 GMT
Server: Apache
Last-Modified: Sat, 13 Nov 2010 16:31:40 GMT
Accept-Ranges: bytes
Content-Length: 51
Connection: close
Content-Type: text/plain; charset=UTF-8
Woohoo! Your arduino ethernet client works!
zoomkat
disconnecting.
==================
is that correct ?