Creating A Search Form
Creating a custom form to search for homes using ListingPress is pretty straightforward. 1. You want to send the request to the index.php file. 2. Here is a list of variables that you can query:
mlsid mlsids address city state zip agent agent_name office office_name distance proptype minprice maxprice minsize maxsize beds baths minyear maxyear minlotisze maxlotsize minfloors maxfloors features amenities lifestyle dom format limit sort
This is probably best illustrated with an example:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" id="myCustomLPForm" method="get">
<label>Address:</label>
<input type="text" name="address" value="" />
<label>City:</label>
<input type="text" name="city" value="" />
<label>State:</label>
<select name="state">
<option value="CA">CA</option>
<option value="MD">MD</option>
... etc ...
</select>
<label>Zip Code:</label>
<input type="text" name="zip" value="" />
<label>Property Type"</label>
<select name="proptype">
<?php prop_types_select_menu(); ?>
</select>
<label>Minimum Price:</label>
<select name="minprice">
<option value="100000">$100,000</option>
<option value="600000">$600,000</option>
... etc ...
</select>
<label>Maximum Price:</label>
<select name="maxprice">
<option value="100000">$100,000</option>
<option value="600000">$600,000</option>
... etc ...
</select>
<label>Bedrooms:</label>
<select name="beds">
<option value="1">1</option>
<option value="6">6</option>
... etc ...
</select>
<label>Bathrooms:</label>
<select name="baths">
<option value="1.5">1.5</option>
<option value="3.75">3.75</option>
<option value="2">2</option>
... etc ...
</select>
</form>
