???? what is wrong in this script in the line 12 as you can see in here: http://www.creativelawnservice.com/webguest.php
************************************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lawn Care Houston, Local Lawn Care, Houston, Cypress, Tomball, Spring</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Affordable Lawn Care for everybody. Sign Up Today">
<meta name="robots" content="INDEX, FOLLOW">
</head>
<?php
function validateZIP(field) {
if $_POST[$field] == " " {
echo "$field is empty";
return false; }
$fields = array('77070', '77373', '77380');
foreach ($fields as $zip) {
if($_POST[$field] == $zip
return true;
}
echo "Zip code is incorrect.";
return false;
}
?>
<body>
<form action="guestip.php" method="post" name="GuestArea" id="GuestArea">
<table width="496" height="157" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="369" height="157"><table width="100%" height="144" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="262" height="20">*</td>
<td width="140" valign="bottom"><strong><font color="red"><? echo getenv('REMOTE_ADDR'); ?></font></strong></td>
<td width="94" valign="bottom">*</td>
</tr>
<tr>
<td height="20">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
<tr>
<td height="20">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
<tr>
<td height="50">*</td>
<td valign="bottom"> Zip Code:
<input name="ZipCode" type="text" id="ZipCode" size="5" maxlength="5" onsubmit="return validateZIP(this.ZipCode.value)" /></td>
<td valign="bottom"><input type="submit" name="Submit" value="Thank You" onSubmit ="return validateZIP(this.ZipCode.value)" /></td>
</tr>
<tr>
<td height="4">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
<tr>
<td height="4">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
************************************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lawn Care Houston, Local Lawn Care, Houston, Cypress, Tomball, Spring</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Affordable Lawn Care for everybody. Sign Up Today">
<meta name="robots" content="INDEX, FOLLOW">
</head>
<?php
function validateZIP(field) {
if $_POST[$field] == " " {
echo "$field is empty";
return false; }
$fields = array('77070', '77373', '77380');
foreach ($fields as $zip) {
if($_POST[$field] == $zip
return true;
}
echo "Zip code is incorrect.";
return false;
}
?>
<body>
<form action="guestip.php" method="post" name="GuestArea" id="GuestArea">
<table width="496" height="157" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="369" height="157"><table width="100%" height="144" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="262" height="20">*</td>
<td width="140" valign="bottom"><strong><font color="red"><? echo getenv('REMOTE_ADDR'); ?></font></strong></td>
<td width="94" valign="bottom">*</td>
</tr>
<tr>
<td height="20">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
<tr>
<td height="20">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
<tr>
<td height="50">*</td>
<td valign="bottom"> Zip Code:
<input name="ZipCode" type="text" id="ZipCode" size="5" maxlength="5" onsubmit="return validateZIP(this.ZipCode.value)" /></td>
<td valign="bottom"><input type="submit" name="Submit" value="Thank You" onSubmit ="return validateZIP(this.ZipCode.value)" /></td>
</tr>
<tr>
<td height="4">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
<tr>
<td height="4">*</td>
<td valign="bottom">*</td>
<td valign="bottom">*</td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>