Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Radio button search  (Read 2333 times)

0 Members and 1 Guest are viewing this topic.

lurcher

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Radio button search
« on: November 03, 2007, 06:42:51 pm »

I am trying to create a searchable list of dogs in various rescues, and need to create a simplified search of the key words. I have read though the various threads (if I have missed the one that anwers my question, I apologise).
I have added a series of radio buttons to a modified search page ( http://www.staghound.org.uk/cpg1413/search3.php ) as Gau Gau suggested on a reply to a similar question , but when hit the submit button I get this from the debugger

USER:
------------------
Array
(
    [ID] => f1561bae06b15402128b023ef60d1916
    [am] => 1
    [lang] => english
    [search] => Array
        (
            [sex] => sez
            [age] => agz
            [dogtype] => tyz
            [nature] => naz
            [owner] => oez
            [cats] => caz
            [children] => chz
            [album] => search
            [search] =>
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [type] => AND
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                )

        )

)
 
    I need to change the value of the radio buttons so that they are added to the search string, ie :-

   [search] => Array
        (
            [album] => search
            [search] => sez agz tyz naz oez caz chz
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [type] => AND
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on

does anyone know how I could accomplish this?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Radio button search
« Reply #1 on: November 04, 2007, 09:10:22 am »

I need to change the value of the radio buttons so that they are added to the search string, ie :
You can't do that. You'll have to modify the code of the page that the form data are sent to and add those entries to the search string there - the string that triggers the meta album.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.