 | |  |
 |

rjbathgate
User
Jun 24, 2008, 6:10 PM
Post #1 of 2
(150 views)
Shortcut
|
|
Search Engine Results - Multiple of same criteria - OR
|
Can't Post
|
|
Hi... again...! I have a search engine which contains a select box whereby users can select one, or multiple options in the select box:
<select name="property_type" multiple="multiple" size="3"> <option value="">Any</option> <option value="Apartment">Apartment</option> <option value="Building Plot">Building Plot</option> <option value="Bungalow">Bungalow</option> <option value="Land">Land</option> <option value="House">House</option> </select> When submitting, the results only display those meeting the criteria of the LAST selected option in the above <select>. Say for example we've selected Land and House on the <select> we only get results as per:
results.php?page=1property_type=House How can I ensure the results page brings over all selected criteria and applies OR to the results? I've also got page listing links (eg 1,2,3,4,5 etc) which would also need to also contain all the criteria with OR rules - link at the moment is coded as:
<a href="results.php?page=<?php echo $page; ?>&property_type=<?php echo @$FORM['property_type']; ?><?php echo $page; ?></a> Many thanks again Dave, Rob
|
|
|  |
 |

Dave
Staff
/ Moderator

Jun 25, 2008, 12:22 AM
Post #2 of 2
(130 views)
Shortcut
|
|
Re: [rjbathgate] Search Engine Results - Multiple of same criteria - OR
[In reply to]
|
Can't Post
|
|
Hi Rob, Unfortunately there's no automatic support for "or" searches and it's not supported by the software. It's a bit of a custom project. The way to do it would be to figure out how to pass the values, write a custom 'where', and then pass the values in the prev/next page links. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|