[eluser]sqwk[/eluser]
I am searching a database. There is a basic search form on the homepage (1st controller). It the data validates, the user should be directed to results page (2nd controller), if it doesn't the errors are shown on the homepage (1st controller).
On the results page there is a more detailed search form, which submits to itself. It the form data doesn't validate the result set from the last search is shown.
At the moment I am tackling this by getting the form fields, encoding them into a url segment, redirecting to the second controller, where they are decoded and the results are displayed. The search form on this second page simply redirects to itself. Depending on whether that data validates, the page loads again with errors or the user is redirected to a new url (result set).
It works fine, yet it seems incredibly messy. It does have the advantage that searches are bookmarkable, but that is about it…