I hope someone can help beginners with this question. I just came from an ASP.Net environment where it was easy to hide or show pieces of HTML. For example: Different stages of a form, depending on what the user has entered.
Hiding or showing <div> / <asp:Panel> was very simple, but in PHP all I can do is put my HTML in an echo statement. This makes HTML very difficult to read, difficult to maintain, and the whole file looks pretty dirty.
I am sure there should be a better way to hide or show pieces of HTML without having to include the echo operator, but I cannot find any online documentation that explains how to do this.
Thanks for any tips, hints or links to good PHP resources for this level of problems.
source share