title: PHP: How to hide/display chunks of HTML
body: <p>I'm hoping someone can help with this very newbie question. I've just come from an ASP.Net environment where it was easy to hide or show chunks of HTML. For example: Different stages of a form, depending on what the user had entered.</p>
  
  <p>Hiding or showing <code>&lt;div&gt;</code>/<code>&lt;asp:Panel&gt;</code>s was very simple, but in PHP all I can think to do is put my HTML into an <code>echo</code> statement. This makes the HTML very difficult to read, difficult to maintain and the whole file looks rather messy.</p>
  
  <p>I'm positive there must be a better way of hiding or showing chunks of HTML without having to involve an <code>echo</code> statement, but I can't find any online documentation that explains how.</p>
  
  <p>Thanks for any tips, advice or links to good PHP resources for this level of problem.</p>