I am not using the `printSearchForm()`function, instead I have a custom search form which replicates the basic zenphoto search form plus I have added a series of checkboxes for common tag values.
I am searching on titles and partial tags only.
The form has an `onSubmit` event which fires a javascript which concatenates the contents of the input textbox `id="search_input` with the values of the checkboxes which I get using MooTools functions.
I then set the search input textbox to this new string and submit the forming using `sf.submit`, where `sf` is the form object.
However my search string is getting truncated somewhere along the line. If I type `tree` in the search box and check `photo` I generate the search string `treeANDphoto`. The search seems to lose my constructed string and only operates with what's in the inputbox ie `tree`.
Perhaps I'm being too clever for my own good when I guess I don't really understand the subtleties of how search works. Can you give me some advice and perhaps point me at some documentation about how search works. I've scanned the `class-search` code, and it's a bit above my level of PHP expertise - should I be using the `setSearchParams` function directly ...?
Comments
For more details look at the class-search instantiation function.
It was my bad.
I use `document.cookies` to persist the form settings and the one that held the value of the search box was called `words` too. I had forgotten that `$_REQUEST` retrieves `$_GET` and `cookie` values too and `$_REQUEST` was picking up the cookie.
Thanks for your time and apologies for my stupidity!