- From: Olivier Thereaux <ot@w3.org>
- Date: Thu, 2 Sep 2004 15:02:29 +0900
- To: William Pracht <tgrk35@gmail.com>
- Cc: www-validator@w3.org
Hello William,
your php code
> <td width="25%" id="sides"><?php include("leftbar.php"); ?></td>
Generates
> <td width="25%" id="sides"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr...
and it should not. You should modify your "leftbar.php" to not output a
full HTML page, just the bits of HTML that are needed.
> Is php not allowed in XHTML documents?
That's not the point. PHP is server side, which means that the XHTML validator (or
browsers for that matter) cannot see any difference whether a page is
static XHTML or XHTML generated with PHP. The point here is not that
you're using PHP, but that you're misusing it.
Regards,
--
olivier
Received on Thursday, 2 September 2004 06:02:31 UTC