Hi Richard,

> I'm trying to create a bookmarkable search results page. I have the
> following form so I am using 'get' search form:
>
> <?php echo $form->create("Event", array("action"=>"search",
> "type"=>"get")) ?>
> <?php echo $form->input("Event.start_date") ?>
> <?php echo $form->end("search") ?>
>
> When the form is posted, the URL looks like this:
>
> http://www.example.com/events/search?event_name=&location_name=&start...
>
> Which makes it impossible to work out the date that was submitted
> because the last query parameter overwrites the previous ones!
>
> $this->params['url']:
>
>             [url] => events/search
>             [start_date] => pm
>
> If I use 'post' as the form type, Cake separates the date fields
> correctly, but the search result page isn't bookmarkable (the url
> becomeshttp://www.example.com/events/search).
>
> Is there a workaround for this? Or am I doing it completely wrong? :-S

You could post your form to an action which then uses the form data to
create the url of the result page and redirects to it.

Hope that helps!

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to