Re: [VE][55] Error Message Feedback

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