can anyone help me out to clear error

/*Web Server
A simple web server
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
*/
//-------------------------------------------------------------------------------------------------------
#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
byte mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x48, 0xD3 };

// The IP address will be dependent on your local network:
// assign an IP address for the controller:
long rfNumber;
IPAddress ip(192,168,1,178);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255, 255, 255, 0);

// Initialize the Ethernet server library with the port you want to use.
EthernetServer server(8081);
String readString;
//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------
// Any extra codes for Declaration :

// Declare Pin 8 as an LED because thats what we will be connecting the LED to.You could use any other pin and would then have to change the pin number.
int led1 = 6;
int led2 = 7;
int led3 = 8;
int led4 = 9;
//-------------------------------------------------
//-------------------------------------------------------------------------------------------------------
void setup()
{
//-------------------------------------------------

// Extra Set up code:
pinMode(led1, OUTPUT); //pin selected to control
pinMode(led2, OUTPUT); //pin selected to control
pinMode(led3, OUTPUT); //pin selected to control
pinMode(led4, OUTPUT); //pin selected to control
pinMode(2, INPUT);
pinMode(3, INPUT);
pinMode(4, INPUT);
pinMode(5, INPUT);

//-------------------------------------------------
//-------------------------------------------------------------------------------------------------------
//enable serial data print
Serial.begin(9600);

//start Ethernet
Ethernet.begin(mac, ip, gateway, subnet);
server.begin();
Serial.print("Server is at ");
Serial.println(Ethernet.localIP());

}
//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------

void loop()
{
// listen for incoming clients
EthernetClient client = server.available();
if (client)

{
  Serial.println("new 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);


        Serial.write(c);
        // if you've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so you can send a reply
        //if HTTP request has ended
        if (c == '\n') {
          Serial.println(readString); //print to serial monitor for debuging
//--------------------------------------------------------------------------------------------------------
// Needed to Display Site:
client.println("HTTP/1.1 200 OK"); //send new page
          client.println("Content-Type: text/html");
          client.println("Refresh: 2");  
          client.println();
          client.println("<HTML>");
          client.println("<HEAD>");
          
          int b1 = digitalRead(2);
          int b2 = digitalRead(3);
          int b3 = digitalRead(4);
          int b4 = digitalRead(5);
           

//--------------------------------------------------------------------------------------------------------
//-------------------------------------------------

// what is being Displayed :     
      
          client.println("<TITLE>KANNAN NAIKAR</TITLE>");
           client.println("<center>");
          client.println("</HEAD>");
          client.println("<BODY bgcolor=#E6E6FA>");
          client.println("<H1>I P S</H1>");
          client.println("<hr />");
          client.println("<center>");
          
          client.println("<table>");
          client.println("<tr>");            
          client.println("<th><a href=\"/forward\"\">FORWARD</a></th>");
          client.println("<th> </th>");
          client.println("<th><a href=\"/backward\"\">BACKWARD</a></th>");     
          client.println("</tr>");
          client.println("<tr>");
          client.println("<th> </th>");
          client.println("</tr>");
          client.println("<tr>");
          client.println("<tr>");
          client.println("<th> </th>");
          client.println("</tr>");
          client.println("<tr>");
          client.println("<th><a href=\"/left\"\">LEFT</a></th>");
          client.println("<th><a href=\"/stop\"\">STOP</a></th>");
          client.println("<th><a href=\"/right\"\">RIGHT</a></th>");
          client.println("</tr>");
          client.println("</table>");
          
          client.println("
");
          client.println("<font color=red><h2>ROBOT IN</h2></font>");
                    
           if ((b1==LOW)&& (b2==LOW)&& (b3==LOW)&& (b4==LOW))
           {
                client.print("<h3>DEATH ZONE</h3>");
                digitalWrite(6, LOW);    // set pin 8 high
                digitalWrite(7, LOW);    // set pin 8 high
                digitalWrite(8, LOW);    // set pin 8 high
                digitalWrite(9, LOW);    // set pin 8 high
           }
           if ((b1==HIGH)&& (b2==HIGH)&& (b3==HIGH)&& (b4==LOW))
           {
                client.print("<h3>FOOD COURT</h3>");
           }
           if ((b1==HIGH)&& (b2==HIGH)&& (b3==LOW)&& (b4==HIGH))
           {
                client.print("<h3>GAME ZONE</h3>");
           }
           if ((b1==HIGH)&& (b2==LOW)&& (b3==HIGH)&& (b4==HIGH))
           {
                client.print("<h3>GROCERY</h3>");
           }
           if ((b1==LOW)&& (b2==HIGH)&& (b3==HIGH)&& (b4==HIGH))
           {
                client.print("<h3>JEWELLRY & COMETIC</h3>");
           }
           client.println("
");
           client.println("
");
           client.println("
");
          client.println("<font color=green>CO-ORDINATES :</font>"); 
[color=yellow]
            rfNumber = rfom(10, 20);[/color]
            client.print("X:");
            client.println(rfNumber);
            client.print("Y:");
        [color=yellow]    rfNumber = rfom(10, 30);[/color]
            client.println(rfNumber);
          
          client.println("</BODY>");
          client.println("</HTML>");

          delay(1);
          //stopping client
          client.stop();

          //-------------------------------------------------
          // Code which needs to be Implemented:
          if(readString.indexOf("forward") >0)//checks for on
          {
            digitalWrite(6, HIGH);    // set pin 8 high
            digitalWrite(7, LOW);    // set pin 8 high
            digitalWrite(8, HIGH);    // set pin 8 high
            digitalWrite(9, LOW);    // set pin 8 high
            
          }
          else if(readString.indexOf("backward") >0)//checks for off
            {
            digitalWrite(6, LOW);    // set pin 8 high
            digitalWrite(7, HIGH);    // set pin 8 high
            digitalWrite(8, LOW);    // set pin 8 high
            digitalWrite(9, HIGH);    // set pin 8 high
            }
          
          else if(readString.indexOf("left") >0)//checks for off
            {
            digitalWrite(6, LOW);    // set pin 8 high
            digitalWrite(7, HIGH);    // set pin 8 high
            digitalWrite(8, HIGH);    // set pin 8 high
            digitalWrite(9, LOW);    // set pin 8 high
            }
           else if(readString.indexOf("right") >0)//checks for off
            {
            digitalWrite(6, HIGH);    // set pin 8 high
            digitalWrite(7, LOW);    // set pin 8 high
            digitalWrite(8, LOW);    // set pin 8 high
            digitalWrite(9, HIGH);    // set pin 8 high
            }
          else if(readString.indexOf("stop") >0)//checks for off
            {
            digitalWrite(6, LOW);    // set pin 8 high
            digitalWrite(7, LOW);    // set pin 8 high
            digitalWrite(8, LOW);    // set pin 8 high
            digitalWrite(9, LOW);    // set pin 8 high
            }
          
          
          //clearing string for next read
          readString="";

          // give the web browser time to receive the data
          delay(1);
          // close the connection:
          client.stop();
          Serial.println("client disonnected");

        }
      }
    }
  }
}
}

error is:
In void loop() function
rfom not declared in the scope.

(deleted)

Before you post again, please read Nick Gammon's two posts at the top of this Forum about the proper way to post source code here. It helps us help you.

@arbyadav, Please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum Your code is too long to study quickly without copying to a text editor.

…R

your function call here:

rfNumber = rfom(10, 30);

doesn't have a defined function in the code you posted!

ya i m new so didn't knew. :confused: ...i modified the post...now if someone can compile and solve the error fr me....what kind of function should i define

(deleted)

Posts #1 and #4 asked you for the missing code for rfom()

            rfNumber = rfom(10, 20);[/color]

but for some reason it seems you expect us to supply that code. So, until you supply the code for the missing function, there's not much we can do.

that is what i need what function should i define for my code…u get error of rfom when u compile it…check it out

(deleted)

arbyadav:
that is what i need what function should i define for my code...u get error of rfom when u compile it...check it out

arbyadav:
that is what i need what function should i define for my code...u get error of rfom when u compile it...check it out

So, it is up to you to go find that (or build) that function!