Ah, thanks for that NogDog. I'd never have guessed it was the <br> tag that was messing things up.
It all validates nicely now, although the output for the meta tags run together.
Is there anyway I can separate the description and keywords in the output?
I'm using the following code for meta tags.
<?php
if ($page==1)
{
echo '<meta content="Great magic tricks, mentalism, comedy, card tricks etc, and magical advice supplied by Magical Wonders since 1985. Routines, articles, free magic downloads and Terry Seabrooke too. Highly recommended." name="description">';
echo '<meta content="magical wonders advanced magic trick amazing magic trick basic magic trick beginner magic trick best magic trick birthday magician buy magic trick cabaret magic card magic playing trick card magician " name="keywords">';
}
elseif ($page==2)
{
echo '<META CONTENT="A different description" NAME="description">';
echo '<META CONTENT="lots, of, other, words, " NAME="keywords">';
As I can no longer use <br>, I've tried using \n"; but I don't seem to be able to get it to work.
Not sure where I'm going wrong? I suppose I could use two different include files. One for description and one for keywords, but there must be a more elegant solution!
Any suggestions?
Thanks,
Myles