Using PHP to add Included files to HTML code.
Posted: Sun 2008 Jan 13 1:23
Ref: http://www.developtheweb.org/forums/sho ... php?t=2918
I have known for some time how I wanted to change the code for my website but have never had the time (or the knowledge) to actually make any changes. I am approaching a week off of classes, so now have the time and, fortunately for me, I have found someone who has supplied the knowledge.
I will try to recreate the information here but, in case I make any mistakes, the original topic in the other forum where I found the help I needed is in the reference link above.
Since I want to keep this as simple as possible, I am not going to create a "real world" example. The initial HTML code will be a page called from another HTML page and the information broken off into the include file will be trivial. All of this should make the progression from pure HTML to an HTML-PHP hybrid a little easier to follow ... I hope. I will be posting this example to multiple posts, so try not to respond until I'm finished.
First, the "original" HTML code ...
I have known for some time how I wanted to change the code for my website but have never had the time (or the knowledge) to actually make any changes. I am approaching a week off of classes, so now have the time and, fortunately for me, I have found someone who has supplied the knowledge.
I will try to recreate the information here but, in case I make any mistakes, the original topic in the other forum where I found the help I needed is in the reference link above.
Since I want to keep this as simple as possible, I am not going to create a "real world" example. The initial HTML code will be a page called from another HTML page and the information broken off into the include file will be trivial. All of this should make the progression from pure HTML to an HTML-PHP hybrid a little easier to follow ... I hope. I will be posting this example to multiple posts, so try not to respond until I'm finished.
First, the "original" HTML code ...