Wednesday 25 January 2006 6:56:43 am
Hi, I just finished today an advanced search similar to yours.. we had to let the user search upto 6 attributes... your code is good just missed one important thing... here's my code:
<input type="hidden" name="Content_search_attribute_fulltext_classattribute_id[]" value="231" /> <select name="Content_search_attribute_fulltext_value[]" class="adv_select">
<input type="hidden" name="Content_search_attribute_fulltext_classattribute_id[]" value="230" /> <select name="Content_search_attribute_fulltext_value[]" class="adv_select"> I have about 5 more dropdowns so i wont put them all... the thing is that the field must be named Content_search_attribute_fulltext_classattribute_id[]... adding the [] at the end creates an array of that field... this way you can have various fields with the same name and managed like an array. i found this code some where in the forum earlier today.. cant remember where now... try to look for it later on if you're still in need of some help.. Fabricio
http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...
|