data send and receive from server

hey guys, please help me out. I have been trying to send my data to server in my computer. I am using a keypad to enter password and send it to wamp server via wifi shield. password must start with 4 or 5. But somehow it doesnt work. Both php file in server is oki. here is the sketch

#include <SPI.h>
#include <WiFi.h>
#include<Wire.h>
#include <LiquidCrystal_I2C.h>
//#include <Servo.h>
#include <Keypad.h>
//Servo myservo; // create servo object to control a servo
// initialize the library with the numbers of the interface pins
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

#define Length 7

char Data[Length]; // 6 is the number of chars it can hold + the null char = 7

byte data_count = 0, master_count = 0;
bool Pass_is_good;
char customKey;

//pachi nikalne
boolean startRead = false; // is reading?
int stringPos = 0; // string index counter
char inString[8]; // string for incoming serial data
//int pos = 0; // for servo
//int CurrentPosition;

const byte ROWS = 4; //four rows
const byte COLS = 4; //three columns
char keys[ROWS][COLS] = {
{‘1’,‘4’,‘7’,’’},
{‘2’,‘5’,‘8’,‘0’},
{‘3’,‘6’,‘9’,’#’},
{‘A’,‘B’,‘C’,‘D’}
// ORIGINAL
//{‘1’,‘2’,‘3’,‘A’},
//{‘4’,‘5’,‘6’,‘B’},
//{‘7’,‘8’,‘9’,‘C’},
//{’
’,‘0’,’#’,‘D’}
};
byte rowPins[ROWS] = {5, 4, 3, 2};//connect to the row pinouts of the keypad {9, 8, 7, 6}; original
byte colPins[COLS] = {9, 8, 7, 6};//connect to the column pinouts of the keypad {5, 4, 3, 2}; original
char key[10];
char key1[10];

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
char ssid = “our_network”; // your network SSID (name)
char pass = “larsson123”; // your network password (use for WPA, or use as key for WEP)
//int keyIndex = 0; // your network key Index number (needed only for WEP)

int status = WL_IDLE_STATUS;
// if you don’t want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
IPAddress server(192,168,0,3); // numeric IP for Google (no DNS)
//char server = “localhost”; // name address for Google (using DNS)

// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
WiFiClient client;

void setup()
{
// myservo.attach(9);

//Initialize serial and wait for port to open:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.clear();
Serial.begin(115200);
while (!Serial)
{
; // wait for serial port to connect. Needed for native USB port only
}

// check for the presence of the shield:
if (WiFi.status() == WL_NO_SHIELD)
{
Serial.println(“WiFi shield not present”);
// don’t continue:
while (true);
}
String fv = WiFi.firmwareVersion();
if (fv != “1.1.0”)
{
Serial.println(“Please upgrade the firmware”);
}

// attempt to connect to Wifi network:
while (status != WL_CONNECTED)
{
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);

// wait 10 seconds for connection:
delay(1000);
}
Serial.println(“Connected to wifi”);
// printWifiStatus();

// if you get a connection, report back via serial:

}

void loop()
{

lcd.setCursor(0,0);
lcd.print(“Enter Password”);

customKey = keypad.getKey();
if (customKey) // makes sure a key is actually pressed, equal to (customKey != NO_KEY)
{
Data[data_count] = customKey; // store char into data array
lcd.setCursor(data_count,1); // move cursor to show each new char
lcd.print(Data[data_count]); // print char at said cursor
data_count++; // increment data array by 1 to store new char, also keep track of the number of chars entered
}

if(data_count == 1 && Data[0]!=‘4’)
// if the array index is equal to the number of expected chars, compare data to master
{
if(Data[0]!=‘5’)
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“WRONG ENTRY”);

delay(1000);// added 1 second delay to make sure the password is completely shown on screen before it gets cleared.
lcd.clear();
clearData();
}
}

if(data_count == Length-2 && Data[0]==‘4’) // if the array index is equal to the number of expected chars, compare data to master
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“Verifying…”);
Client_Borrow(Data);
Client_Borrow_Verify();
delay (5000);
lcd.clear();

clearData();

}

if(data_count == Length-1 && Data[0]==‘5’) // if the array index is equal to the number of expected chars, compare data to master
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(“Password is park”);

delay(1000);// added 1 second delay to make sure the password is completely shown on screen before it gets cleared.

}
}

void Client_Borrow(char Data)
{

Serial.println("\nStarting connection to server…");
if(client.connect(server,80))
{
Serial.print(Data);
Serial.println(“Connected…”);
client.print(“GET /bicycle/passwordcheckborrow.php?”);
client.print(“pass=”);
client.print(Data);
client.println(" HTTP/1.1");
client.print("Host: ");
client.println(server);
client.println(“Connection: close”);
client.println();
client.println();
Serial.println(“data sent”);
delay(1000);
}
else
{
Serial.println(“Connection failed”);
}
client.stop();

}
void Client_Borrow_Verify()
{
Serial.println("\nStarting connection to server disp…");
// if you get a connection, report back via serial:
if (client.connect(server, 80))
{
Serial.println(“connected to server”);
// Make a HTTP request:
client.println(“GET /bicycle/passwordverifyborrow.php HTTP/1.1”);
client.print("Host: ");
client.println(server);
client.println(“Connection: close”);
client.println();
Serial.println(“OKI”);
}
stringPos = 0;
memset( &inString, 0, 32 ); //clear inString memory
while(true)
{
if (client.available())
{
Serial.println(“verifying”);
char c = client.read();
Serial.println(c);

if (c == ‘+’ )
{ //’<’ is our begining character
startRead = true; //Ready to start reading the part

}else if(startRead)
{

if(c != ‘|’)
{ //’>’ is our ending character
inString[stringPos] = c;
stringPos ++;
}
else
{
//got what we need here! We can disconnect now
startRead = false;
Serial.write(inString);
lcd.clear();
lcd.setCursor(0,0);
lcd.print(inString);
delay(5000);
client.stop();
client.flush();
Serial.println(“disconnecting.”);

}
}
}
}
}

void clearData()
{
while(data_count !=0)
{ // This can be used for any array size,
Data[data_count–] = 0; //clear array for new data
}
}

Edit your post and put code tags around the code!

Usually you read the servers answer before closing the connection.

After editing your post to add the code tags, you need to tell us what that code actually does. Knowing what the server is telling you would be useful, too.

Knowing what the Apache logs look like, when you attempt to store the data would be useful, too.

Knowing what the php scripts look like would be useful, too.