Click to See Complete Forum and Search --> : Writing XHTML with PHP


jediwasabi
02-20-2005, 07:05 PM
Hi,

Can someone direct me to a tutorial on writing XHTML with PHP. I hope this is not overkill, writing the entire page from doctype to closing with php. I've seen it done, and find it quite attractive, but if gratuitious please let me know.

Jupac
02-20-2005, 07:08 PM
PHP donsnt effect your xhtml




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title>w00t</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="mjohn_layout.css" type="text/css" />

</head>
<body>

<? echo "Hello World"; ?>


</body>
</html>

jediwasabi
02-20-2005, 07:16 PM
My question may have been obtuse. Here is what I'm attempting

<?php

echo '<html>';
echo '<head>';
echo '<title>XHTML with PHP</title>';
echo '</head>';
echo '<body>';
echo '<p>This is a test</p>';
echo '</body>';
echo '</html>';




?>


My concern is the neccesity of this method, when would it be advisable?

Thanks for the quick response.

Jupac
02-20-2005, 07:19 PM
hmm whats the point of that?

jediwasabi
02-20-2005, 07:21 PM
Hi,

Just what I thought after playing with it, no use at all. Some experiments are just goofy.

Thanks
JW