Ron Wood Posted April 19, 2011 Share Posted April 19, 2011 Hi Larry, thanks for your great books. I am new to PHP but I am really enjoying learning. Your books are excellent. I am creating a web site using templates as described in Chapter 8. I have inserted the Constant to generate the unique title for each new page ( as on page 201 )but I also want to insert unique key words and a unique description for each page too. How do I do this? Is there a script somewhere I can copy and paste into my pages? I'd really appreciate some help / advice on this. Many thanks, Ron Link to comment Share on other sites More sharing options...
Larry Posted April 20, 2011 Share Posted April 20, 2011 Thanks for the nice words, Ron. Much appreciated. As for your question, just replicate the page title code, using a different constant name. So maybe create a PAGE_DESCRIPTION constant and, in the header, have PHP print out the PAGE_DESCRIPTION constant within the appropriate meta tag, assuming the constant is defined. Link to comment Share on other sites More sharing options...
Recommended Posts