Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Html Query, HTML Query
leusmith
post Nov 24 2006, 08:12 AM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 24-November 06
Member No.: 33,941



OK, so I want to know if it's possible to have my links as a seperate file and simply reference that file in the rest of my site's pages so that if I change the links, I don't have to go and edit every single page of my site.

Does anyone know how to do this?
Go to the top of the page
 
+Quote Post
truefusion
post Nov 24 2006, 08:53 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,916
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



Two ways: PHP include, or (i)frames.

Since you've posted this in the HTML section, i'ma suggest using an iframe. Information on how to properly use an iframe can be found here.

If you would like to know how it's done with PHP, let us know. smile.gif
Go to the top of the page
 
+Quote Post
AlternativeNick
post Nov 25 2006, 07:24 PM
Post #3


Super Member
*********

Group: Members
Posts: 210
Joined: 7-June 06
Member No.: 24,817



if your looking to use a php way, put all of your links in a html form (<a href="link">text</a><br>) into a text file, then use a php include like this:

CODE
<?php include('file') ?>


replace file with the relative file path

This post has been edited by AlternativeNick: Nov 25 2006, 07:25 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. where did you learn html from?(89)
  2. Html And Xhtml(11)
  3. Html Cool Codes?(6)
  4. Html Editor(19)
  5. Do You Know Html?(65)
  6. Html And Javascript(12)
  7. Centering Page Of Html At Various Display Widths(14)
  8. Url Redirection = Javascript+html(4)
  9. Html Question Concerning Pre Tag And Code Tag(8)
  10. Creating Link In Html - Help Me With This!(5)
  11. Have You Used This Html Code?(9)
  12. Error In Css (or Html)(5)
  13. Wanting To Touch Up/learn My Html Again(27)
  14. Having Html Troubles......(1)
  15. How To Display Php Code [resolved](8)
  1. Help With Html(11)
  2. Ok Background Help Please(4)
  3. Some More Help With Html(2)
  4. Html Help(6)
  5. Help With Css/html Layout(5)
  6. Wanna Learn Html From Scratch(5)
  7. Login In Using Html(12)
  8. Html Application Form(6)
  9. Best Way To Protect Html Form Fields(3)
  10. Html Div Help [resolved](1)
  11. Html Ascii Codes - A Complete List(3)
  12. Help Making A Web Adress Bar Using Html/js(9)
  13. Some Questions On Html(6)


 



- Lo-Fi Version Time is now: 8th October 2008 - 05:53 AM