Hi guys
Im new to PHP and getting a bit confused with how to structure it in html.
I have seperate php files with php code. How do I include it in html with a css file?
Do i include it in a html file??
This is my index.html but not sure whether my PHP statements are correct.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>Untitled Document</title>
<?php
require("header.php");
?>
<h1>Welcome!!</h1>
Welcome to the <strong>
<?php echo $config_sitename; ?></strong> website.
Click on one of the pages to explore the site.
We have a wide range of different products
available.
<?php echo
require("footer.php");
?>
</head>
<body>
<div id="container">
<div id="bar">
<?php echo
require("bar.php");
?>
</div>
</div>
<div id="main">
<div id="menu">
<a href="<?php echo $config_basedir; ?>">Home</a>
•
<a href="<?php echo $config_basedir; ?>about.php">About</a>
•
<a href="<?php echo $config_basedir; ?>faq.php">FAQ</a>
•
<a href="<?php echo $config_basedir; ?>tech.php">Technical
Details</a>
</div>
</div>
<div id="footer">
</div>
</body>
</html>