in reply to Suggestions on dynamic site..

It's hard to tell where to start with your question, but it seems like some approaches below may be helpful.

And, I'm sure others will have many other leads for you, including anything you can find on separating data, logic, and presentation.