well i wanted to have complete and valid html headers and tried this

<?php
some code
?>
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

this resulted in an php parse error

so i tried

<?php
some code
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

but now i got another problem... all table vAlign tags seem to not work anymore!!!!!! mixing up layout...

so what am i doing wrong.... anyone got arround php parsing the xml?

    In your php.ini, turn short_open_tag to Off to get rid of the first parse error.

    The reason your valign's don't work maybe for 2 reasons.
    1) change vAlign to valign. Attributes, I believe, are case sensitive in XHTML
    2) They may have removed the valign attribute from XHTML Strict. If you want to stick with XHTML Strict, use CSS. If you're lazy and don't want to change your HTML, try using XHTML Transitional.

    Diego

      to 1) tried both - no difference
      to 2) didnt do the trick 🙁

      thats for your suggestions anyway!

        Write a Reply...