Advanced Search Filter

Trying to make the radio buttons output as a Select box.



This is what I have but when I perform a search no items are found…


<br />
{if $filter.feature_type == "S" || $filter.feature_type == "E" || $filter.feature_type == "M"}<br />
<select name="{if $filter.feature_type == "M"}multiple_{/if}variants[]"><br />
 <option value=""{if strval($range.range_id) == ''} selected="selected"{/if}>Select...</option><br />
			{foreach from=$filter.ranges item="range"}<br />
				<option value="{if $filter.feature_type == "M"}{$range.range_id}{else}[V{$range.range_id}]{/if}" {if "[V`$range.range_id`]"|in_array:$search.variants || $range.range_id|in_array:$search.multiple_variants}slected="selected"{/if} />{$filter.prefix}{$range.range_name}{$filter.suffix}</option><br />
			{/foreach}<br />
            <br />
            </select>
```<br />
<br />
I looked at the URL and looks ok but the "&multiple_variants[]=VARIANTID" shows multiple times even if they are not selected through the search Like So...<br />
<br />
```php
URL?search_performed=Y&match=any&q=&pname=N&pname=Y&cid=0&pcode=&price_from=&price_to=&weight_from=&weight_to=&advanced_filter=Y&variants[]=[V762]&multiple_variants[]=&multiple_variants[]=&multiple_variants[]=&dispatch[products.search]=Search
```<br />
<br />
Thanks in advance!

Solved it! Thanks anyway.

And the answer was…?