'e' was not declared in this scope.

Hello!
I'm quite new in the subject of programming so I took one from the Internet which has to be connected to the app I created and as I've had some errors I'd need some help!
So, when I try to upload the program to the Arduino it sends me the message "'e' was not declared in this scope" and it marks me this part of the code: if (params =e.serviceRequest()).
Anybody knows which is it the problem? Now I'll copy here all the program!
I'm quite worried as I need it for a school project and I know nobody who knows about Arduino programming!
Please comment if you have some idea what the problem is!

sketch_mar16a.ino (1.71 KB)

It makes life a lot easier if you include the code for your sketch directly in your post (using code tags) rather than as an attachment.

so I took one from the Internet which has to be connected to the app I created

This doesn't convey a lot of information. One what? What app have you created?

What hardware are you using?

If you are new to programming you seem to be jumping in at the deep end. Have you worked through many of the examples that come with the Arduino IDE? Have you tried any of the Ethernet examples that are in the online Reference/Libraries section?

Have you a link to the source of the code you are trying to use?

It looks to me like there is a chunk of code missing in which e would have been defined.

...R

The Arduino IDE has example sketches, you should start with those.
Did you try the example to make a led blink ?

Which Arduino board are you using ?
Which ethernet module are you using ?
If you are using a ENC28J60, you have choosen the wrong module, because it is not officially supported by Arduino.
The ENC28J60 can be used with the EtherCard or UIPEthernet libraries. But first I would like to know how you have wired it to the Arduino board.

In addition to the other responses, there is so much wrong with that sketch,it is hard to pick a place to start. Here is my server code examples in the playground. Search the forum for zoomkat's server examples. They work good also.
http://playground.arduino.cc/Code/WebServerST

In that case thanks for telling me! I'll look for another alternative!

Simple server code to switch an arduino pin hi/lo. The serial monitor can be opened to see what the server is receiving. For the w5100 Ethernet shield.

//zoomkat 3-17-12
//simple button GET server code to control servo and arduino pin 5
//for use with IDE 1.0
//open serial monitor to see what the arduino receives
//use the \ slash to escape the " in the html 
//address will look like http://192.168.1.102:84 when submited
//for use with W5100 based ethernet shields

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

#include <Servo.h> 
Servo myservo;  // create servo object to control a servo 

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = { 192, 168, 1, 102 }; // 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

String readString; 

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

void setup(){

  pinMode(5, OUTPUT); //pin selected to control
  //start Ethernet
  Ethernet.begin(mac, ip, gateway, gateway, subnet);
  server.begin();

  myservo.write(90); //set initial servo position if desired
  myservo.attach(7);  //the pin for the servo co
  //enable serial data print 
  Serial.begin(9600); 
  Serial.println("server LED test 1.0"); // so I can keep track of what is loaded
}

void loop(){
  // Create a client connection
  EthernetClient client = server.available();
  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.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("<HTML>");
          client.println("<HEAD>");
          client.println("<TITLE>Arduino GET test page</TITLE>");
          client.println("</HEAD>");
          client.println("<BODY>");

          client.println("<H1>Zoomkat's simple Arduino button</H1>");
          
          // DIY buttons
          client.println("<a href=\"/?on5\"\">ON</a>"); 
          client.println("<a href=\"/?off5\"\">OFF</a>
"); 

          // mousedown buttons
          client.println("
<input type=\"button\" value=\"ON\" onmousedown=\"location.href ('/?on5');\"/>"); 
          client.println("<input type=\"button\" value=\"OFF\" onmousedown=\"location.href ('/?off5');\"/>");        
          
          // mousedown radio buttons
          client.println("

<input type=\"radio\" value=\"ON\" onmousedown=\"location.href ('/?on5');\"\">ON</>"); 
          client.println("<input type=\"radio\" value=\"OFF\" onmousedown=\"location.href ('/?off5');\"\">OFF</>");        
 
          client.println("</BODY>");
          client.println("</HTML>");
 
          delay(1);
          //stopping client
          client.stop();

          ///////////////////// control arduino pin
          if(readString.indexOf("on5") >0)//checks for on5
          {
            myservo.write(40);
            digitalWrite(5, HIGH);    // set pin 5 high
            Serial.println("Led On");
          }
          if(readString.indexOf("off5") >0)//checks for off5
          {
            myservo.write(140);
            digitalWrite(5, LOW);    // set pin 5 low
            Serial.println("Led Off");
          }
          //clearing string for next read
          readString="";

        }
      }
    }
  }
}