Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Radio button search  (Read 2252 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.017 seconds with 20 queries.