Separation of presentation from business logic is the goal though: I NEVER code HTML mixed with PHP anymore: for any kind of site that's gonna be worked on over time, it's just a maintenance nightmare. Checkout template engines like PHP FastTemplates - you won't regret it. Peter