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 13733 Mar 23, 2004, 11:10 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 13111 Jan 27, 2008, 2:49 PM
Thread Re: [aus_dave] Search with checkboxes
aus_dave 13072 Jan 27, 2008, 3:18 PM
Thread Re: [aus_dave] Search with checkboxes
Andy 13068 Jan 28, 2008, 1:26 AM
Thread Re: [Andy] Search with checkboxes
aus_dave 13059 Jan 28, 2008, 1:35 AM
Post Re: [aus_dave] Search with checkboxes
Andy 13129 Jan 28, 2008, 1:37 AM
Post Re: [aus_dave] Search with checkboxes
brewt 13048 Jan 29, 2008, 12:30 PM
Thread Re: [iplay] Search with checkboxes
VishalT 13104 Jan 28, 2008, 1:39 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 13069 Jan 28, 2008, 4:26 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 13110 Jan 28, 2008, 7:10 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 13033 Jan 28, 2008, 1:04 PM
Thread Re: [aus_dave] Search with checkboxes
VishalT 13009 Jan 29, 2008, 1:57 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 13039 Jan 29, 2008, 3:31 AM
Post Re: [aus_dave] Search with checkboxes
VishalT 13020 Jan 29, 2008, 6:05 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 13047 Jan 29, 2008, 6:09 AM
Post Re: [SWDevil.Com] Search with checkboxes
aus_dave 12992 Jan 29, 2008, 6:07 PM
Thread Re: Search with checkboxes
iplay 12958 May 3, 2008, 10:07 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 12951 May 4, 2008, 4:20 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 12920 May 4, 2008, 5:28 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 12925 May 4, 2008, 7:17 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 12927 May 12, 2008, 6:59 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 12971 May 12, 2008, 7:31 PM
Post Re: [aus_dave] Search with checkboxes
brewt 12891 May 12, 2008, 7:55 PM