jaynesh — 2012-01-09T05:10:20-05:00 — #1
Hello, I'm having trouble on what is the best way to implement the dom. This is the structure of a typical page on my website.
include("database.php") #Contains PHP
include("variables.php") #Contains PHP
include("header.php") #Contains PHP & HTML
include("navigation.php") #Contains PHP & HTML
include("content.php") #Contains PHP & HTML
ralphm — 2012-01-09T06:32:10-05:00 — #2
What do you mean by "implement the dom"?
molona — 2012-01-09T06:36:51-05:00 — #3
I agree with Ralph. Your question is not question at all. You have a template that includes different files to output a web page with a session started... but implementing DOM? The DOM is created each time you load a page. It is the nodes and structure resulting from the interpretation of your markup by your browser.
We need to know exactly which problem you have
paulob — 2012-01-09T06:37:33-05:00 — #4
Is this an html question or is this a PHP or scripting question?
If you can clarify I will move the thread to the appropriate forum.
jaynesh — 2012-01-09T07:14:41-05:00 — #5
Sorry, I meant the doctype declaration.
ralphm — 2012-01-09T07:24:34-05:00 — #6
It's not likely that the doctype you choose will have any bearing on the code you posted above. Use whatever suits you, but preferably a strict doctype or the generic
<!DOCTYPE html>. The important thing is to have a doctype.