News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Radio button search

Started by lurcher, November 03, 2007, 06:42:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lurcher

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?

Joachim Müller

Quote from: lurcher on November 03, 2007, 06:42:51 PM
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.