Originally posted by planetsim
You really should seperate logic from presentation. There should be no HTML within a PHP file, it eventually gets way too cluttered and hard to maintain.
I agree with this 100%, but in practical life, I find that I still have to slip PHP variables into the value attributes of "input" fields, for example, if I'm redirecting a user back to an incorrectly filled out form.
The best I've been able to accomplish is to break the page into portions (header, column left, main/content, column right, footer, etc), but this just breaks the pages into workable modules, and does not necessarily that logic is separated from presentation.
If you know of a way to completely avoid feeding any PHP code to the HTML markup, I'd love to hear it. It would help me overcome the clutter that you mentioned, planetsim. TIA.