Hi! Have searched the forums but find no conclusive answers about incorporating checkboxes on an advanced search page. Using the code below, for example, works if the user checks ONE box, but doesn't work if s/he checks two boxes or more boxes. This sort of search works in the Admin panel, so why can't it work on the site?!?
<B>Accommodation:</B><BR>Guest House <INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Guest House"> Hotel<INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Hotel">Local Host Family <INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Local Host Family">Student Residence<INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Student Residence">
search.cgi?Accommodation=Guest+House This works OK
search.cgi?Accommodation=Hotel This works OK
search.cgi?Accommodation=Guest+House&Accommodation=Hotel This does NOT work
This has nothing to do with the entries in the db. Plenty of entries contain both values.
I know it can be done with radio buttons, but that doesn't offer the flexibility of checkboxes to search for two items at once. As it can be done in Admin, I wonder why it doesn't work on the site. What am I doing wrong?!
Many thanks for any help.
Josef
Thanks,
--Jo

<B>Accommodation:</B><BR>Guest House <INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Guest House"> Hotel<INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Hotel">Local Host Family <INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Local Host Family">Student Residence<INPUT TYPE="CHECKBOX" NAME="Accommodation" VALUE="Student Residence">
search.cgi?Accommodation=Guest+House This works OK
search.cgi?Accommodation=Hotel This works OK
search.cgi?Accommodation=Guest+House&Accommodation=Hotel This does NOT work
This has nothing to do with the entries in the db. Plenty of entries contain both values.
I know it can be done with radio buttons, but that doesn't offer the flexibility of checkboxes to search for two items at once. As it can be done in Admin, I wonder why it doesn't work on the site. What am I doing wrong?!
Many thanks for any help.
Josef
Thanks,
--Jo