Use templates.
I know this doesnt directly respond to your question, but if you're using php its time to learn about templates.
http://phpbuilder.com/columns/sascha19990316.php3
That provides a pretty simple introduction.
For php there are tons of libraries available ... XTemplate, QuickTemplate, FastTemplate, etc etc. I would love to find something like the above that work with java servlets ( i know...not too hard to create one )
futang
ps Maybe i should have said that the template system used in the above libraries succeeds in completely sepearting php and html, use it, love it.
I know this doesnt directly respond to your question, but if you're using php its time to learn about templates.
http://phpbuilder.com/columns/sascha19990316.php3
That provides a pretty simple introduction.
For php there are tons of libraries available ... XTemplate, QuickTemplate, FastTemplate, etc etc. I would love to find something like the above that work with java servlets ( i know...not too hard to create one )
futang
ps Maybe i should have said that the template system used in the above libraries succeeds in completely sepearting php and html, use it, love it.