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 8555 Mar 23, 2004, 11:10 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 8252 Jan 27, 2008, 2:49 PM
Thread Re: [aus_dave] Search with checkboxes
aus_dave 8229 Jan 27, 2008, 3:18 PM
Thread Re: [aus_dave] Search with checkboxes
Andy 8208 Jan 28, 2008, 1:26 AM
Thread Re: [Andy] Search with checkboxes
aus_dave 8206 Jan 28, 2008, 1:35 AM
Post Re: [aus_dave] Search with checkboxes
Andy 8263 Jan 28, 2008, 1:37 AM
Post Re: [aus_dave] Search with checkboxes
brewt 8180 Jan 29, 2008, 12:30 PM
Thread Re: [iplay] Search with checkboxes
VishalT 8256 Jan 28, 2008, 1:39 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 8213 Jan 28, 2008, 4:26 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 8248 Jan 28, 2008, 7:10 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 8177 Jan 28, 2008, 1:04 PM
Thread Re: [aus_dave] Search with checkboxes
VishalT 8166 Jan 29, 2008, 1:57 AM
Thread Re: [SWDevil.Com] Search with checkboxes
aus_dave 8175 Jan 29, 2008, 3:31 AM
Post Re: [aus_dave] Search with checkboxes
VishalT 8166 Jan 29, 2008, 6:05 AM
Thread Re: [aus_dave] Search with checkboxes
VishalT 8197 Jan 29, 2008, 6:09 AM
Post Re: [SWDevil.Com] Search with checkboxes
aus_dave 8137 Jan 29, 2008, 6:07 PM
Thread Re: Search with checkboxes
iplay 8105 May 3, 2008, 10:07 AM
Thread Re: [iplay] Search with checkboxes
aus_dave 8096 May 4, 2008, 4:20 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 8075 May 4, 2008, 5:28 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 8069 May 4, 2008, 7:17 PM
Thread Re: [aus_dave] Search with checkboxes
brewt 8073 May 12, 2008, 6:59 PM
Thread Re: [brewt] Search with checkboxes
aus_dave 8117 May 12, 2008, 7:31 PM
Post Re: [aus_dave] Search with checkboxes
brewt 8041 May 12, 2008, 7:55 PM