Jump to content


VlexoFree Notice

Interviews will be open every Friday starting at 12am PDT and lasting for 24 hours.

jerrod

Member Since 29 May 2007
Offline Last Active May 21 2012 04:15 PM
-----

Topics I've Started

Coding Help forum

07 December 2010 - 08:16 PM

Eli, I do realize I have suggested quite a bit, but we all love suggestions!

I was thinking maybe make a subforum in Website Development for Help to better organize the files. We can also have a solved helped forum to keep the solved topics away from the unsolved topics. This will help people who are newer and wanting to find what they are looking for a little better.

It will also leave the main forum for things that don't fall under the other catagories such as Java, C++, C#, etc

How to have the same header and/or footer on every page

06 December 2010 - 09:16 PM

Okay I have seen quite a few people wondering about how to have a easy way to have a link back on every page of their site. Well I'll also have show how to have the header/navigation included on every page also.

I will use an example from a site I am working on. And yes I do know the HTML is really unclean and isn't the recommended way of using it.

EXAMPLE

Here is what we are going to do.
1. Make a file called header.php

<html>
<header>
<title>The Suit - Fargo/Watertown</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</header>
<body>
<div class="container">
<div class="header">
<img src='/logo.jpg' />
<br />
<div class="navback">
<div class="nav">
<a href='index2.php'>HOME</a> <a href='http://www.thesuit.bigcartel.com/'>MERCH</a> <a href='http://www.myspace.com/thesuitmusic'>MYSPACE</a>
</div>
</div>
</div>
<div class="main">

2. Make a file called footer.php
<div align="center">
<!--VlexoFree_AdCode_728x90_Custom_START-->
<!--VlexoFree_AdCode_728x90_Custom_END-->
<hr>
<div id='credits'>
Website Designed By: The Judgment Day Agency; <!--VlexoFree_LinkBack-->
</div>
</div>
</div>
</div>
</body>
</html>

3. This is the basic code for each page to use.
<?php include('header.php') ?>
PUT YOUR INFO HERE
<?php include('footer.php') ?>

DIRECTORY

23 November 2010 - 08:07 PM

Parsing HTML W/ PHP code

DIRECTORY

23 November 2010 - 08:07 PM

I WILL UPDATE WHEN TOPICS ARE STARTED!

DIRECTORY

23 November 2010 - 08:06 PM

Easy PHP Navigation
Parsing HTML w/ PHP Code