Arduino UNO client webpage design

hi all i am facing problem with webpage design with arduino uno and Ethernet shield. i am trying to make a web page with a 00 to 9 key pad and buttons for 8 switches to set their timing i have also button for ajust and apply. Nw the problem is that when i make more then 10 buttons i am unable to ping the server and the web doesnt open ether. i have tried alot but in vain.
client.println("

ADJUST

");
client.println("

APPLY

");
this is the script for adjust and apply button.
please help me on this topic or suggest a better way to do resolve this issue

here is the complete code even serial port does not display any thing
#include <SPI.h>
#include <Ethernet.h>

// ethernet configuration
byte mac[] = { 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
byte ip[] = { 192, 168, 1, 111 }; // P1 --> { 10, 1, 1, 5 };
EthernetServer server(80); // port 80 is default for HTTP

// initial
int LED = 3; // led is connected to digital pin 3
char c = 0; // received data
int command; // command
int i=0;
int value=0;

void setup()
{
Serial.begin(9600);
Ethernet.begin(mac, ip);
server.begin();
pinMode(LED, OUTPUT);
Serial.println("Serial READY");
Serial.println("Ethernet READY");
Serial.println("Server READY");
}

void loop()
{
val();
command=value;
// LED control
if(command==1)
{
command=-1;
val();
command=value;
if(command>=0)
{
for(i=command;i>0;i--)
{
digitalWrite(LED, HIGH);
delay(200);
digitalWrite(LED, LOW);
delay(200);
}
}
command=-1;
}
}

and this is the html code
void val(void)
{
label:
EthernetClient client = server.available();

boolean current_line_is_first = true;
if (client) {
// an http request ends with a blank line
boolean current_line_is_blank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
// if we've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so we can send a reply
if (c == '\n' && current_line_is_blank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
client.println("

QUETTA CITY TRAFFIC LIGHTS



");
// button functions
client.println("");
client.println("

S1

");
client.println("

S2

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

S3

");
client.println("

S4

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

S5

");
client.println("

S6

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

S7

");
client.println("

S8

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

1

");
client.println("

2

");
client.println("

3

");
client.println("

4

");
client.println("

5

");
client.println("

6

");
client.println("

7

");
client.println("

8

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

9

");

client.println("

00

");
client.println("
");
break;
}
if (c == '\n') {
// we're starting a new line
current_line_is_first = false;
current_line_is_blank = true;
}
else if (c != '\r') {
// we've gotten a character on the current line
current_line_is_blank = false;
}
// get the first http request
if (current_line_is_first && c== '=') {
c= client.read();
switch (c)
{
case 1:
{
value=101;
c=0;
break;
}
case 2:
{
value=102;
c=0;
break;
}
case 3:
{
value=103;
c=0;
break;
}
case 4:
{
value=104;
c=0;
break;
}
case 5:
{
value=105;
c=0;
break;
}
case 6:
{
value=106;
c=0;
break;
}
case 7:
{
value=107;
c=0;
break;
}
case 8:
{
value=108;
c=0;
break;
}
case '%':
{
value=0;
c=0;
break;
}
case 'a':
{
value=1;
c=0;
break;
}
case 'b':
{
value=2;
c=0;
break;
}
case 'c':
{
value=3;
c=0;
break;
}
case 'd':
{
value=4;
c=0;
break;
}
case 'e':
{
value=5;
c=0;
break;
}
case 'f':
{
value=6;
c=0;
break;
}
case 'g':
{value=7;
c=0;
break;
}
case 'h':
{
value=8;
c=0;
break;
}
case 'i':
{
value=9;
c=0;
break;
}

/* default:
{
value=-1;
goto label;
}*/
}

}
}
}
// give the web browser time to receive the data
delay(1);
client.stop();
}
}

Each literal string used in a client.println() is placed in SRAM. Each of these lines:

client.println("<button name=b value=1 type=submit style=height:50px;width:80px;background-color:#ADD8E6><h3 style=color:blue>S1</h3></button>");

take around 125 bytes of SRAM.

You have 17 lines like this using over 2100 bytes of SRAM, plus the other client.println() lines, plus any other variables that your sketch and the libraries that you are using require. That has to come out of the 2048 bytes of SRAM that the Uno has. You could try using the F() macro, which keeps literal strings in the Flash memory area.

client.println(F("<button name=b value=1 type=submit style=height:50px;width:80px;background-color:#ADD8E6><h3 style=color:blue>S1</h3></button>"));

@dxwood thanx for your assistance that worked fine but my final program will be much longer then this one and space of ROM will be insufficient. so is there any way that i can use SD card for RAM purpose ???

I know it's not what you are asking but you can keep your html codes and buttons on your server and you can pass a parameter to arduino to do things..

@MTD any example for that ??? how to send the values ??? because this code reads the ltr after /?= value