Quote:
|
Originally Posted by Richard M
You should really be using the closing </option> tags and put 'selected="selected"' in the default option.
e.g.:
<select name="furnishing">
<option value="Furnished">Furnished</option>
<option value="Unfurnished">Unfurnished</option>
<option value="Part furnished">Part furnished</option>
<option value="Furnished to suit">Furnished to suit</option>
<option value="No preference" selected="selected">No preference</option>
</select>
|
Must have missed that heh, anyway it's now:
<select name="furnishing">
<option value="Furnished">Furnished</option>
<option value="Unfurnished">Unfurnished</option>
<option value="Part furnished">Part furnished</option>
<option value="Furnished to suit">Furnished to suit</option>
<option value="">No preference</option>
</select>
You see, there is no value in the database for "No Preference", so I want it to just somehow bypass the "furnishing" field somehow, I thought that furnishing= (with nothing after it) would show them all, but .. it doesn't

which is a bit odd, because if I set one of the other fields to say minbeds= (with nothing after it) it shows all the results. which is probably due to:
if ($minprice == "")
{
$minprice = 0;
}
in the results page. I just need to get something in there for furnishing (somehow)