Bernard, It sounds to me like you could use arrays, which may negate the need for all of these elseif's that you describe... maybe combined with a foreach statement, building the query up inside there?
Your second point, I'm not sure I understand - the html form will be displayed as part of the view. - component - do you mean an element? An element would be there to reuse code in more than one page, (or more than once on a page.). You could accept the data in a form, post back to the controller with the data, perform the query and rerender the same page, populating the previous empty table or whatever with your newly selected data. If you wanted you could do this through ajax and just populate a div element or whatever without reposting back to the server but maybe you want to take one thing at a time. Hope this helps --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
