1) the code for the checkboxes:
echo "<input type=\"checkbox\" class=\"tickbox_".$row_type."\"";
if (in_array($keyword['ProfileID'],$profilekeywords)) { echo " checked"; }
echo " name=\"ckbox[".$keyword['ProfileID']."]\" id=\"ckbox[".$keyword['ProfileID']."]\">";
has a couple prolems:
a) The id does not need to be in the checkbox name.
b) you dont have a value.
try using:
echo "<input type=\"checkbox\" class=\"tickbox_".$row_type."\"";
if (in_array($keyword['ProfileID'],$profilekeywords)) { echo " checked"; }
echo " name=\"ckbox[]\" id=\"ckbox[]\" value=\"".$keyword['ProfileID']."\">";
2) on the bindings panel, click the plus button, select URL Variable, name the URL Variable:
ckbox
edit the data assist search behavior and add a new critiera.
set the criteria type to key word.
for the keyword or, use a coma followd by a space:
", " <- without quotes
for the keyword and enter:
AND
no spaces
For the value, click the lightning bolt icon and select the checkbox url variable. also add the following code at line 1 of the results page:
<?php
if($_SERVER["REQUEST_METHOD"] == "GET") {
foreach($_GET as $key => $val) {
if(is_array($_GET[$key])) $_GET[$key] = implode(", ", $_GET[$key]);
}
}
?>