Tim > 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? > Thanks you, that make sense, I will look at this. > 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. > OK, that's the idea, what confuses me is that I would need to have 2 different functions in the controller, with the same view. I was under the assumption that each function needs to be associated with her own view. I am really still a beginner, so I would not be to surprised if I was assuming something wrong....;-) > 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. > I thought of Ajax for this, but as you say, I am doing it a little step at a time...
Bernard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
