PLEASE HELP!
This is the error details, which I am getting.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Wed, 25 Aug 2010 15:10:00 UTC
Message: 'document.addressForm' is null or not an object
Line: 116
Char: 2
Code: 0
URI: /prop_information.php?id=449
Here is the code:
If you can help in anyway I will be so happy.
Kind Regards
JaneyBad xxxx
This is the error details, which I am getting.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Wed, 25 Aug 2010 15:10:00 UTC
Message: 'document.addressForm' is null or not an object
Line: 116
Char: 2
Code: 0
URI: /prop_information.php?id=449
Here is the code:
Code:
<?php require_once('conn.php'); ?>
<?php
$sqp="select * from data_tb where dbid='".$_REQUEST['id']."'";
$resp=mysql_query($sqp);
if(!$resp)
{
die('error in data');
}
$rwp=mysql_fetch_array($resp);
$disaddress = $rwp['DISPLAY_ADDRESS'];
$postcode1 = $rwp['POSTCODE1'];
$postcode2 = $rwp['POSTCODE2'];
$address = $disaddress .','. $postcode1 .','. $postcode2;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Adams Letting Agents | Homepage</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url();
}
.hdt_text {
color: #FFF;
}
.hdt_text {
font-size: 14px;
}
.hdt_text {
font-size: 24px;
}
.ita {
font-style: italic;
}
.ari {
font-family: Arial, Helvetica, sans-serif;
color: #6C1035;
font-size: 12px;
font-weight: bold;
}
.new_hea {
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
color: #6C1035;
}
.pag {
font-family: Arial, Helvetica, sans-serif;
}
.pag {
font-size: 12px;
}
.pbl {
font-family: Arial, Helvetica, sans-serif;
color: #000;
font-size: 12px;
}
.pag .pag {
color: #666;
}
.pag1 { font-family: Arial, Helvetica, sans-serif;
}
.pag1 { font-size: 12px;
color: #666;
}
a:link {
color: #6C1035;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #C89094;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.hdt_text1 { color: #FFF;
}
.hdt_text1 { font-size: 16px;
}
.hdt_text1 { font-size: 24px;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
.ari1 { font-family: Arial, Helvetica, sans-serif;
color: #6C1035;
font-size: 14px;
font-weight: bold;
}
-->
</style>
<script type="text/javascript" src="[URL unfurl="true"]http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAKhe6Tr31lu_KjnR1slWcIBRNjYwVGhjJmR7rB-fGidrT762auBQdZs7ZxzQdBlNKYC3r9mzNTdBPkw"></script>[/URL]
<script type="text/javascript">
var map = null;
var geocoder = null;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
geocoder = new GClientGeocoder();
}
}
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
}
}
);
}
}
document.addressForm.submit();
</script>
<script type="text/javascript">
function bigimg(value)
{
document.getElementById("plswt").innerHTML="Please Wait...";
document.getElementById("item_img").src=value;
document.getElementById("plswt").style.display="none";
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>
</head>
<body onload="initialize(); showAddress(document.addressForm.address.value)" onunload="GUnload()">
<form action="#" name="addressForm" document.forms="[0]" >
<input type="hidden" name="address" value="<?php echo $address; ?>" />
</form>
<table width="99%" height="1028" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" height="92" align="center" bgcolor="#6c1035"> </td>
<td width="57%" nowrap="nowrap" bgcolor="#6c1035"><img src="pics/test_nav.jpg" width="238" height="65" /></td>
<td width="28%" align="center" bgcolor="#6C1035" class="hdt_text"><span class="hdt_text1">Call us <span class="ita">now</span> on 01202 520600</span></td>
<td width="5%" bgcolor="#6c1035"> </td>
</tr>
<tr>
<td height="19" bgcolor="#ede7e7"> </td>
<td nowrap="nowrap" bgcolor="#ede7e7" class="ari"><a href="index.php">HOME</a> <a href="landlords.php">LANDLORDS</a> <a href="tenants.php">TENANTS</a> <a href="students.php">STUDENTS</a> <a href="properties.php">PROPERTIES</a> <a href="about.php">ABOUT US</a> <a href="contact_us.php">CONTACT US</a></td>
<td align="center" bgcolor="#ede7e7" class="pbl"><u>LOGIN</u></td>
<td bgcolor="#ede7e7"> </td>
</tr>
<tr>
<td height="19" bgcolor="#c89094"> </td>
<td nowrap="nowrap" bgcolor="#c89094"> </td>
<td bgcolor="#c89094"> </td>
<td bgcolor="#c89094"> </td>
</tr>
<tr>
<td height="23"> </td>
<div>
<td class="pag"><p><span class="new_hea">Property Details</span></p></td></div>
<td rowspan="3" valign="top"><table width="430" height="573" border="0">
<tr>
<td width="83" height="60"> </td>
<td width="337" class="ari">Resources for properties</td>
</tr>
<tr>
<td height="28"> </td>
<td class="pag1">Flats in Bournemouth<br /></td>
</tr>
<tr>
<td> </td>
<td class="pag1">Flats in Poole</td>
</tr>
<tr>
<td> </td>
<td class="pag1">Houses in Bournemouth</td>
</tr>
<tr>
<td> </td>
<td class="pag1">Houses in Poole</td>
</tr>
<tr>
<td> </td>
<td class="pag1">Student Accommodation</td>
</tr>
<tr>
<td> </td>
<td class="pag1">Studios</td>
</tr>
<tr>
<td> </td>
<td class="pag1">Rooms in Shared Accommodation</td>
</tr>
<tr>
<td height="213"> </td>
<td class="pag1"><img src="pics/valuation.jpg" width="232" height="211" border="0" /></td>
</tr>
<tr>
<td> </td>
<td class="pag1"> </td>
</tr>
<tr>
<td> </td>
<td class="pag1"> </td>
</tr>
<tr>
<td> </td>
<td class="pag1"> </td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td height="318"> </td>
<td valign="top"><table width="100%" height="318" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="42%" height="318" align="left" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php if ($rwp['MEDIA_IMAGE_00'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_00'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;"/></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_01'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_01'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_02'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_02'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
</tr>
<tr>
<td height="2" colspan="4"></td>
</tr>
<tr>
<?php if ($rwp['MEDIA_IMAGE_03'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_03'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_04'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_04'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_05'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_05'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
</tr>
<tr>
<td height="2" colspan="4"></td>
</tr>
<tr>
<?php if ($rwp['MEDIA_IMAGE_06'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_06'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_07'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_07'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_08'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_08'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
</tr>
<tr>
<td height="2" colspan="4"></td>
</tr>
<tr>
<?php if ($rwp['MEDIA_IMAGE_60'] != ""){ ?>
<td height="78" align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_60'];?>" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<?php if ($rwp['MEDIA_IMAGE_TEXT_60'] != ""){ ?>
<td align="left" valign="top"><img src="images/<?php echo $rwp['MEDIA_IMAGE_TEXT_60'];?>" alt="" width="80" height="78" onclick="bigimg(this.src)" style="cursor:pointer;" /></td>
<?php } ?>
<td align="left" valign="top"> </td>
</tr>
</table></td>
<td width="58%" align="left" valign="top"><div id="plswt"></div>
<img src="images/<?php echo $rwp['MEDIA_IMAGE_00'];?>" width="386" height="318" align="right" id="item_img" /></td>
</tr>
</table>
</td>
<td> </td>
</tr>
<tr>
<td height="557"> </td>
<td valign="top"><table width="100%" height="447" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" valign="top"><table width="100%" height="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="88" colspan="2" valign="top"><strong class="pag1"><span class="ari"><span class="ari1">£<?php echo $rwp['PRICE'];?> pcm</span></span></strong><br />
<span class="ari1"><?php echo $rwp['DISPLAY_ADDRESS'];?><br />
</span><span class="ari"><u><br />
</u></span><span class="ari"><u>OVERVIEW</u></span><span class="pag1"><u><br />
<br />
</u><?php echo $rwp['DESCRIPTION'];?></span></td>
</tr>
<tr>
<td width="201" height="196" valign="top"><p class="ari"><u>KEY FEATURES:<br />
<br />
</u><?php echo $rwp['FEATURE1'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE2'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE3'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE4'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE5'];?><br />
</p></td>
<td width="156" valign="top"><p class="ari"><br />
<br />
<?php echo $rwp['FEATURE6'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE7'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE8'];?></p>
<p class="ari"><?php echo $rwp['FEATURE9'];?><br />
</p>
<p class="ari"><?php echo $rwp['FEATURE10'];?><br />
</p></td><td width="13"></div>
</tr>
<tr>
<td height="47" valign="top"><span class="ari1"></a></span><span class="ari1"><a href="testing_new.php?id=<?php echo $rwp['dbid'];?>"><img src="images/arrange_viewing.jpg" width="139" height="30" border="0" /></a><a href="#" onclick="history.go(-1);return false;"><img src="images/back_return.jpg" width="75" height="30" border="0" /></a><a href="javascript:;"><br />
</a></span></td>
<td valign="top"><a href="#" onclick="history.go(-1);return false;"></a><a href="javascript:;"><img src="images/print_version.jpg" width="75" height="30" border="0" onclick="MM_openBrWindow('print_pages.php?id=<?php echo $rwp['dbid'];?>','PrintFriendly','scrollbars=yes,width=615,height=885')" /></a></td>
</tr>
</table> <p> </p></td>
<td width="342" valign="top"><br /> <table width="200" border="0" align="right">
<tr>
<td><div id="map_canvas" style="width: 320px; height: 352px"></div></td>
</tr>
</table></td>
</tr>
</table> <p> </p></td>
<td> </td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="7,6,231,156" href="hometest/prop_information.php" />
</map>
</body>
</html>
If you can help in anyway I will be so happy.
Kind Regards
JaneyBad xxxx