rendered paste body<?php
if(isset($_POST['address'])) {
$address = $_POST['address'];
} else {
$address = "";
}
if(isset($_POST['citystatezip'])) {
$citystatezip = $_POST['citystatezip'];
} else {
$citystatezip = "";
}
?>
<html>
<head>
<title>Sellers Helpline | Get Help Selling Real Estate</title>
<META name="verify-v1" content="1AFEBIoAMdCjHmzHSTUtFyYqYkehlzHk7H93O4U6B4s=" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!-- A {TEXT-DECORATION: none} A:hover{TEXT-DECORATION: underline} //-->
</style>
</head>
<body bgcolor="#EEEBD8" link="#669933" vlink="#669933" alink="#669933" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="202" border="0" cellpadding="0" cellspacing="0" background="../images/bg.jpg">
<tr>
<td valign="middle"><div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:1; left: 0px; top: 0px;">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="627">
<!-- fwtable fwsrc="sellers_helpline_new.png" fwbase="sellers_helpline_new.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="../images/spacer.gif" width="627" height="1" border="0" alt=""></td>
<td><img src="../images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td><a href="/"><img name="sellers_helpline_new_r1_c1" src="../images/sellers_helpline_new_r1_c1.jpg" width="627" height="200" border="0" alt="Real Help for Real Estate Sellers!"></a></td>
<td><img src="../images/spacer.gif" width="1" height="200" border="0" alt=""></td>
</tr>
<tr>
<td background="../images/sellers_helpline_new_r3_c1.jpg"> </td>
<td> </td>
</tr>
<tr>
<td background="../images/sellers_helpline_new_r3_c1.jpg"><div align="center"><a href="/"><img src="../images/sellers_toll_free_new.gif" alt="Click to Get Help Now!" width="431" height="77" border="0"></a></div></td>
<td> </td>
</tr>
<tr>
<td background="../images/sellers_helpline_new_r3_c1.jpg"><div align="center"></div></td>
<td> </td>
</tr>
<tr>
<td height="254" background="../images/sellers_helpline_new_r3_c1.jpg">
<div align="center">
<form action="http://sellershelpline.com/zillow/" method="POST">
<table width="289" border="1" cellpadding="0" cellspacing="0" bordercolor="#EEEBD8">
<tr>
<td width="285" height="204"><table width="285" border="0" cellspacing="0" cellpadding="4">
<tr>
<td height="44" background="../images/bg-tiny.jpg"><div align="center"><strong><font color="#669933" size="2" face="Verdana, Arial, Helvetica, sans-serif">Get
Your Home's Zestimate™</font></strong></div></td>
</tr>
<tr>
<td height="40"><div align="center">
<input type="text" id="address2" name="address" <? echo "value=\"".$address."\"" ?> size="30">
<font size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
Property Address</font></div></td>
</tr>
<tr>
<td width="285" height="22"><div align="center">
<input type="text" id="citystatezip3" name="citystatezip" <? echo "value=\"".$citystatezip."\"" ?> size="30">
<br>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif">City
& State (or Zip)</font></div></td>
</tr>
<tr>
<td height="38"><div align="center">
<input type="submit" id="submit3" name="submit" value=" Get My Zestimate!">
</div></td>
</tr>
<tr>
<td height="36"><div align="center"><font color="555555" size="1" face="Verdana, Arial, Helvetica, sans-serif">Powered
by</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<a href="http://www.Zillow.com" target="_blank">Zillow™</a></font></div></td>
</tr>
</table></td>
</tr>
</table>
<p>
<?php
if (isset($_POST['submit'])) {
$zwsid = "X1-ZWz1cl9o7v60wb_89sjr";
$zillowurl = "http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=".$zwsid."&address=".urlencode($address)."&citystatezip=".urlencode($citystatezip);
$data = implode("", file($zillowurl));
$parser = @xml_parser_create();
@xml_parser_set_option($parser, @XML_OPTION_CASE_FOLDING, 0);
@xml_parser_set_option($parser, @XML_OPTION_SKIP_WHITE, 1);
@xml_parse_into_struct($parser, $data, $values, $tags);
@xml_parser_free($parser);
foreach($values as $resultset) {
if($resultset['tag'] == "zpid") $zpid = $resultset['value'];
}
if(isset($zpid)) {
$zillowurl2 = "http://www.zillow.com/webservice/GetZestimate.htm?zws-id=".$zwsid."&zpid=".$zpid;
$propertyinfo = implode("", file($zillowurl2));
$parser = @xml_parser_create();
@xml_parser_set_option($parser, @XML_OPTION_CASE_FOLDING, 0);
@xml_parser_set_option($parser, @XML_OPTION_SKIP_WHITE, 1);
@xml_parse_into_struct($parser, $propertyinfo, $propertyvalues, $propertytags);
@xml_parser_free($parser);
echo "<pre>";
print_r($propertyvalues);
echo "</pre>";
} else {
echo "No Property Info Returned.";
}
}
?>
</p>
</form>
</div>
</td>
<td> </td>
</tr>
<tr>
<td background="../images/sellers_helpline_new_r3_c1.jpg"> </td>
<td> </td>
</tr>
<tr>
<td><img name="sellers_helpline_new_r4_c1" src="../images/sellers_helpline_new_r4_c1.jpg" width="627" height="49" border="0" alt=""></td>
<td><img src="../images/spacer.gif" width="1" height="49" border="0" alt=""></td>
</tr>
</table>
</div>
<blockquote>
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.BuyersHelpline.com"><strong>Buyers
Helpline</strong></a> - <a href="/get-help-now"><strong>Sellers
Helpline</strong></a> - <a href="http://www.RefinanceHelpline.com"><strong>Refinance
Helpline</strong></a></font></div>
</blockquote>
<div align="center">
<div align="center">
<p><font color="#999999" size="1" face="Verdana, Arial, Helvetica, sans-serif">Copyright
©2006 Sellers Helpline - All Rights Reserved.</font></p>
<p> </p>
</div>
</div>
</div></td>
</tr>
</table>
</body>
</html>