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 8302 Mar 23, 2004, 11:10 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 7999 Jan 27, 2008, 2:49 PM
Thread Re: [aus_dave] Search with checkboxes
aus_dave 7977 Jan 27, 2008, 3:18 PM
Thread Re: [aus_dave] Search with checkboxes
Andy 7956 Jan 28, 2008, 1:26 AM
Thread Re: [Andy] Search with checkboxes
aus_dave 7953 Jan 28, 2008, 1:35 AM
Post Re: [aus_dave] Search with checkboxes
Andy 8011 Jan 28, 2008, 1:37 AM
Post Re: [aus_dave] Search with checkboxes
brewt 7927 Jan 29, 2008, 12:30 PM
Thread Re: [iplay] Search with checkboxes
VishalT 8003 Jan 28, 2008, 1:39 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 7961 Jan 28, 2008, 4:26 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 7995 Jan 28, 2008, 7:10 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 7925 Jan 28, 2008, 1:04 PM
Thread Re: [aus_dave] Search with checkboxes
VishalT 7914 Jan 29, 2008, 1:57 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 7923 Jan 29, 2008, 3:31 AM
Post Re: [aus_dave] Search with checkboxes
VishalT 7913 Jan 29, 2008, 6:05 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 7945 Jan 29, 2008, 6:09 AM
Post Re: [SWDevil.Com] Search with checkboxes
aus_dave 7885 Jan 29, 2008, 6:07 PM
Thread Re: Search with checkboxes
iplay 7851 May 3, 2008, 10:07 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 7843 May 4, 2008, 4:20 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 7823 May 4, 2008, 5:28 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 7817 May 4, 2008, 7:17 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 7820 May 12, 2008, 6:59 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 7865 May 12, 2008, 7:31 PM
Post Re: [aus_dave] Search with checkboxes
brewt 7789 May 12, 2008, 7:55 PM