When a user submits a form I'm hoping to apply some logic to their
choice. The form takes user input and translates their selection into
conditions to use in a query. One part of the selection is the choice
to choose a genre. I'm hoping to say something like, if user chooses
one genre or more then also add 'this genre' to their query. I tried
something like:
if (!empty($this->data['Genre']['id']) and count($this->data['Genre']
['id']) > 0) {
$this->data['Genre']['id'] = 51;
}
but have found that $this->data['Genre']['id'] = 51; does nothing. How
can i force genre 51 to become part of the query if the user chooses
at least one genre?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---