Bad idea mixing HTML and PHP?
I was reading this tutorial and it seems like code separation is a more elegant design incorporating some sort of MVC structure. One thing that is on my mind is – Is it really acceptable to mix a little bit of HTML and PHP?
It’s acceptable to mix HTML and PHP as long as you’re doing it for presentation purposes. In an MVC structure, you only mix PHP with HTML in a view, and only for things needed by the view.
Never mix business logic with HTML.