Issues with New (undocumented) Search Behaviour
Ray,
On the page we worked on in the last Premier Support Ticket I am testing the checkbox facility again but it is not working as I expect.
On the search page I have a series of check boxes like so:
<label>
<input type="checkbox" class="filterCheck brandsSubmit amana" name="brands[]" value="9">
Amana</label><br>
<label>
<input type="checkbox" class="filterCheck brandsSubmit american-range" name="brands[]" value="534">
American Range</label><br>
<label>
<input type="checkbox" class="filterCheck brandsSubmit bello" name="brands[]" value="22">
Bell'O</label><br>
<label>
<input type="checkbox" class="filterCheck brandsSubmit bosch" name="brands[]" value="25">
Bosch</label><br>
<label>
etc. etc.
and my search is set up like so:
$search_rsDataSet->clearSearch();
$search_rsDataSet->setSearch(array("type"=>"Checkbox", "comparison"=>"=", "join"=>"AND"), array("pkBrand"), "i", isset($_POST["brands"])?$_POST["brands"]:'');
I can see that the values are being passed through when I do:
print '<pre>';
print_r($_POST['brands']);
print '</pre>';
I get:
Array
(
[0] => 27
[1] => 42
[2] => 428
)
But the recordset is not filtered, why is that ?
URL's etc in PM
Thanks.