Quick SSI Help Please

Soldato
Joined
11 Apr 2003
Posts
4,216
Location
Notts
Hi all, im trying to use SSI to do the following:

I want to store, and be able to udate links for a navigation bar, that will be used on all my webpages at the same time.

Im not however sure how to do this, in my main index.shtml I have:

Code:
<div id="navbar"><?php include("/assets/library/global/nav_bar.php"); ?></div>

In nav_bar.php I have:

Code:
<p>test</p>
<p><a href="www.google.co.uk"><Link</a></p>

In my Style.css I have:
Code:
div#navbar {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	width:auto;
	height:28px;
	text-align: center;
	background-color: #C0C0C0;
	background-image: url(../images/global/nav_bar.gif);
	overflow: inherit;
}

Can anyone help me solve this please :)? Bit new to website making!
 
I would also ask, how to validate so instead of my text going

FFFFFFFFFFFFFFFFFFFFFFFFFFFF

it would go

FFFFF
FFFFF
FFFFF

Automaticaly, if text to long is entered
 
Don't know if it makes a difference but the following syntax should be fine to do an SSI:

Code:
<div id="navbar"><?php include "assets/library/global/nav_bar.php"; ?></div>
Notice the missing brackets and the first slash.
 
Voo said:
Don't know if it makes a difference but the following syntax should be fine to do an SSI:

Code:
<div id="navbar"><?php include "assets/library/global/nav_bar.php"; ?></div>
Notice the missing brackets and the first slash.
Sadly still the same problem
 
Voo said:
And what is the problem?
It does not display anything, I want it to display links, in a line EG

Forums: :Home: :About: :Fun: :Chat:

But it so far displays nothing
 
Back
Top Bottom