Help - Search - Members - Calendar
Full Version: Div/ Iframe/ php help
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
Chelsealicious
i just designed my website layout for the first time by my self...i want to know whats the best thing to use so that im not going from page to page trying to update links..and how exactly to i go about codeing after i've decide?

-chels
Chelsealicious
...anyone?
paintedskies
If you don't want to change every page on a layout change, you can use PHP to include your header and footer.

You don't code layouts in PHP, you code them in HTML and CSS, but can use PHP to make things easier.
Chelsealicious
So is Php a program or a code?
synatribe
php is a code, you have to do it like this, code ur layout, then seperate the code into different sections
example
split the code into 2, where do u split it?
good question your first part is going to be the part right up to where your content starts and the second part begins where the content ends and the second part ends until the rest of the code then name those two differnt section into differnt names such as above and below, then upload those files and in ur new page put
CODE
<?php include("above.php")?>

this is now ur header and then add
CODE
<?php include("below.php")?>
and in between this put the content for that specific page, iframes are html codes that connect another webpage to the one your on,
CODE
<iframe>content here</iframes>

but php would be better if you have more content

okay so if your completely lost just pm me or post ur code so I can split it for you, I hope this helped:] thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.