
Originally Posted by
risoknop
Basically yes, that's how it is done.
Richard, I'm sorry but I'm getting more confused. (Must be the stress of my deadline...)
Let me back up...
The book I read took this apporach with most examples...
header.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--<link rel="stylesheet" type="text/css" href="tabs.css" />-->
<style type="text/css">
</style>
</head>
<body>
<!-- Header type HTML... ->
<!-- Start of page-specific content. -->
index.php
Code:
<?php
include{'includes/header.html');
?>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec tempus massa vitae dolor ultrices laoreet. Vestibulum quam libero, iaculis a ultrices in, vulputate non dolor. Donec sodales dapibus diam, egestas convallis turpis pharetra a.
</p>
<?php
include{'includes/footer.html');
?>
footer.html
Code:
<!-- End of page-specific content. -->
</body>
</html>
For the kinds of things in the book that seemed okay, but I'm not sure if such a coding approach applies to my site?!
The way the author laid things out, it reads like a newsletter where you always assume there is some Page Header followed by variable content followed by a Footer.
But my Seminar Registration forms don't have "Headers" and "Footers" in an HTML or Page sense.
Each form is unique, and the presentation (HTML) and logic (PHP) are intermingled in my mind?! 
So I'm probably making a mountain out of a mole hill, but I'm just getting off to a rocky start coding my completed HTML pages with PHP logic.
Does that make sense?
Can you (or anyone) shed some light on how I should approach things so I don't have spaghetti code?? AND so it makes sense to me?!
Thanks,
Amy
Bookmarks