/    Sign up×
Community /Pin to ProfileBookmark

Hi

I have been looking for the best way to create a menu bar on my webpage, I started with buttons, then went to frames, and now its setup using html and formated with CSS

In one of my posts I was told that I could create a seperate file for this and use php if my serve supports it. I have confimed that this is the case.

the perons posted this script. I have no idea how to work this into my page.

My goal is for my menu bar to remain static and be able to add and remove links without having to change every page. Can ccs formating be appied to php script. I assume yes but thought I would ask.

[code]
<?php

include(“links.php”);

?>

[/code]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@welshMar 08.2006 — yes, that would work if the page it was on was for example index.php
Copy linkTweet thisAlerts:
@SheldonMar 08.2006 — You need to name all of your files with the .php extension, then change all links to .php rather than .html

then simpley put that code where your want the menu to be displayed, making sure *links.php* is the name of the file you want to include as your menu.
Copy linkTweet thisAlerts:
@kprocauthorMar 08.2006 — Hi everyone thankyou for the information. I got it to work. I changed my menu bar and header bar. now I'm going to add a footer
×

Success!

Help @kproc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...