November 12th, 2001, 07:24 AM
I'm building a web page at the mo, but want to use a prog language or anything so that I can make one template, whcih each page on my site uses. So I make one template, with the menu and other links and such on, that each page uses. Any ideas what I would use to do this?
November 15th, 2001, 04:50 AM
If they are the same on every page, just make a function called site_header(), in there output the menu. Call it before any other output, and you're done. After that, make a function called site_footer(), put in the closing tags(</table> etc.) and call it after the rest of the output.
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs
December 11th, 2001, 03:37 PM
or u could just use includes