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_date=09&start_date=22&start_date=2008&start_date=02&start_date=33&start_date=pm
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
becomes http://www.example.com/events/search).
Is there a workaround for this? Or am I doing it completely wrong? :-S
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---