Let's say I created a header file, footer file and use it for every pages.. where should I put the meta-tag?

If I put it at header file, all the pages from the site will have the same meta-tag. What can I do to have a different meta-tag without sacrificing the header file?

William_Wilson

03-09-2006 09:12 PM

I'm assuming you've made the common mistake of writting your php code within your webpage file, or trying to put the meta-tag within the php code.
*I'm no pro w/ php, but this one i have covered :D
Instead use a standard start and include the meta tag as you would in any html file. This would allow you to write the meta tag individually for each page, then use an include statement to add your header/footer files to it as well. (eg: include( 'header.php' ); )

*Although there is nothing technically wrong with not doing it this way, it is more 'proper' as far as programming style
good luck!