Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Search with checkboxes

Quote Reply
Search with checkboxes
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?!?Cool

<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
Subject Author Views Date
Thread Search with checkboxes iplay 11369 Mar 23, 2004, 11:10 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 10798 Jan 27, 2008, 2:49 PM
Thread Re: [aus_dave] Search with checkboxes
aus_dave 10760 Jan 27, 2008, 3:18 PM
Thread Re: [aus_dave] Search with checkboxes
Andy 10756 Jan 28, 2008, 1:26 AM
Thread Re: [Andy] Search with checkboxes
aus_dave 10746 Jan 28, 2008, 1:35 AM
Post Re: [aus_dave] Search with checkboxes
Andy 10816 Jan 28, 2008, 1:37 AM
Post Re: [aus_dave] Search with checkboxes
brewt 10735 Jan 29, 2008, 12:30 PM
Thread Re: [iplay] Search with checkboxes
VishalT 10792 Jan 28, 2008, 1:39 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 10758 Jan 28, 2008, 4:26 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 10794 Jan 28, 2008, 7:10 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 10719 Jan 28, 2008, 1:04 PM
Thread Re: [aus_dave] Search with checkboxes
VishalT 10696 Jan 29, 2008, 1:57 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 10725 Jan 29, 2008, 3:31 AM
Post Re: [aus_dave] Search with checkboxes
VishalT 10707 Jan 29, 2008, 6:05 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 10734 Jan 29, 2008, 6:09 AM
Post Re: [SWDevil.Com] Search with checkboxes
aus_dave 10679 Jan 29, 2008, 6:07 PM
Thread Re: Search with checkboxes
iplay 10647 May 3, 2008, 10:07 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 10638 May 4, 2008, 4:20 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 10608 May 4, 2008, 5:28 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 10613 May 4, 2008, 7:17 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 10614 May 12, 2008, 6:59 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 10659 May 12, 2008, 7:31 PM
Post Re: [aus_dave] Search with checkboxes
brewt 10580 May 12, 2008, 7:55 PM