Need answer to the edit section of this question
<p>Need your opinion on the edited part of this <a href="http://stackoverflow.com/questions/4173203/what-do-you-think-about-the-quality-of-this-php-code">question</a> i asked on stackoverflow.  Been waiting for the whole day but no one's come back to answer that.</p>

<p>Do you think it is useful if you further separtae php and html in your Display pages?</p>

<p>Like In cases where we need to display minimal html like </p>

<pre><code>&lt;h2 align='center'&gt; Appointment Control Panel V 1.0&lt;/h2&gt;
&lt;h2 align='center'&gt;Your Next Appointments&lt;/h2&gt;  
&lt;div id=detail&gt;&lt;/div&gt;
</code></pre>

<p>we make a function to render that and call it in our display rather than outputting html directly.</p>

<p>So maybe that helps to reuse that function in many other places.... And maybe we put many such functions in a common file which then can be included.</p>

<p>Do you think is this an overkill or it helps to reuse and make changes easily in one place or add new functions in case we want to change the looks, size, orientation and placement of something?</p>
