May I join the discussion.
I agree with rohypnol
Quote:
Please don't put HTML code in PHP
I handle Headers and Footers the same way I handle all HTML within PHP by using include.
- include 'header.html';
-
.............................
-
some php.....
-
include 'webForm.html';
-
more php .............
-
include 'footer.html';
All HTML is neatly out of the way in their own files.
The only HTML I have never succesfully placed in a HTML file is a
drop down <select> created on the fly within a loop from a database query.
This is better placed in a function.
I have nothing against meep's function idea, in fact a function will parse a lot quicker than include if faster parsing is needed.
I would dump all HTML functions in a seperate file say htmlFunctions.php and
include this at the beginning.
But I think the OP's real problem was reading his code in Dreamweaver,
may I suggest phpDesigner.