Need Help with Iframe

They have: 67 posts

Joined: Aug 2001

I am tired of having to update all the pages on my web site each time I do something different, like adding a new link

I would like to have the navigation links updated in all the pages when I make a change like remove or add a new link.

Can anyone help me build the main page with iframe http://www.haitisurf.com/index2.html
Or how can I achieve that so in the futre I will have to update ever single page.

Thank you,

Please visit my matchspecial.com and sign up with a picture it is free, free sign up please.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Includes! Don't use iframes, really -- it's probably not in your best interest, nor that of your users.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Yeah take up a a language like PHP or ASP and if you need help jsut post back here Smiling the members of TWF will be glad to help Laughing out loud

They have: 67 posts

Joined: Aug 2001

I do need help with that I am not good with php or asp. I would love to be able to update all the files at once and mostly in the main file index2.html

http://www.haitisurf.com/index2.html

If there is a cost for the help please let me know ASAP.

Thanks.

Please visit my matchspecial.com and sign up with a picture it is free, free sign up please.

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

The only cost is your time and energy. What server-side languages are available on your server?

They have: 67 posts

Joined: Aug 2001

I know for sure that I have PHP with hosting company and PERL

Thank you so much suze, please send your advise

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Well if you have PHP availliable on your server then go fer PHP Laughing out loud

http://www.php.net should be of some use Laughing out loud

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

I'm moving this to Server-Side as well.

1. Save the file as .php or .phtml (depending on what your options on are the server -- someone else may have a way to parse .html files as .php and the reasons why or why not to do it that way).

2. The part you want to update can be .txt or .php, use .txt if it won't contain any other PHP scripting.

3. <? include "frequently_updated.txt"; ?> goes where the text should be on the site.

SUCH AS:

<html>
<head>
.
.
.
</head>
<body>

<? include "frequently_updated.txt"; ?>

</body>
</html>
'

And you can put anything you want above and below this 'include'. So if your text is normally in a table cell, remove all the text and replace it with the <? ... ?> part.

For the frequently_updated.txt file, it should ONLY be:

[code]

text

text

text

[/code}

So no , , or tags. Anything else would do.

Smiling S

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.