Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager (Realty Manager & Auto Manager):
Realty Manager - radio button to search all new construction

 

 


bsurakan
User

Mar 5, 2003, 2:09 PM

Post #1 of 2 (1213 views)
Shortcut
Realty Manager - radio button to search all new construction Can't Post

Hello all,

Don't think this has been posted if it has I'm sorry, but my question is this:

lfield30 = age (age of property). Works fine, all of our properties show the age of the house. Now some of these listings are new construction anything less than or equal to 1 year.

I have set up my search page so a user can search for "New Construction"

<select name="lfield30_min">
<option>--
<option>0
</select>
&nbsp;
<select name="lfield30_max">
<option value="">--
<option>1
</select>



so the user sees 2 drop down boxes and selects 0 for min and 1 for max and the script returns all listings that match that critera, works great. So here is the question:

How can I set a radio button or check box that a user can simply click on to return the output i listed above ( all listings less than or equal to 1 ).

PS. Some listings might have "Age" (lfield30) blank or with an X these need to be excluded from the return output of the users search.

TIA to all (i'm sure it's something real easy and I'll slap my forehead when i see the answer)


dlo_itools
Staff


Mar 6, 2003, 10:16 AM

Post #2 of 2 (1188 views)
Shortcut
Re: [bsurakan] Realty Manager - radio button to search all new construction [In reply to] Can't Post

You can use something like

<input type="checkbox" name="lfield30_max" value="1">New Construction

This assume that there are lfield30 values are never negative, which should be the case, so lfield30_min is not needed.

The above however will still include listings that have a blank or an X in lfield30, because _min and _max treats the field as numeric (with non-numeric content being treated as zero). The way to work around this is to reserve lfield30 for numeric content, and use another field to handle the special cases of blank and X.
/Dave Lo

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4