That's a good question. I'm not sure what is the answer. I'll do some poking around and get back to you if I bump into an decent answer. You should email the people at iContact as they probably can help you..
Use ssi (server side include).
* edit *.
Meh... joe beat me to it!..
Right....erm, sorry, but I dont have a clue how to do this ssi thing, so I suppose I'll ask for help?..
Did you read any tutorials about it?.
And does your server support it?..
Yeas my server does support it, but the tutorials just confuzeled me!..
How about php includes? Does your server support php? That may be easier since all it basically is is <?php include 'file.html' ?>..
I think it will suport php, yeas, how does that work now then....then?..
I don't see how it is hard. they both are almost the same..
Seems the same to me. not hard to understand...
Aha, but it would be oh-so much easier if I even understood one of them, I however understand neither, except the bit that means it's going to be far more complicated than I'd have liked......
*breaks down and cries* all I wanted was a nice-looking website, why do they have to make it sooo complicated?!!*/breaks down and cries*.
And I take it that there is no other solution apart from SSI or PHP?..
Did you see scoutts post?.
It's not hard at all! All you have to do is copy that into your page, change the extension, and change the file name!..
It will be tough as you have to rename all of your files you ned to do the including..
If index has that code in it it will include file.html in the spot it is in. in my example it will include what ever code you have in file.html in to the existing index.php. so you have that file I just showed and in file.html you have this.
And then the outcome of running index.php will be this.
That is all it does. try it out and you can see for your self how easy it really is. the hard part like I said will be editing all of you pages to do this...
If you have dried your tears by now.
Here's one last piece that might help:.
Put your menu bar code in a file all by itself, give it a name, and then follow scoutt's directions..
Did you try electrician's tape? That's just a guess.....
Actually, going with AboveAverages post, putting the <body> tag and everything above it in one tag and then the navigation in another you need not change every single page for something you want to change.
This way you have drastically reduced the amount of codes you have on each page..
Right, I think I'm getting this....
So index.php will look like this:.
And nav.php will look like this:.
And logo.php will look like this:.
Please tell me I'm right.....
Should it have worked, or is it something I'm doing wrong?..
Yes you did do it right, what was the output of the index.php you ran?..
Output...yuou mean what I saw when I went to the website?.
Well, all I saw was the content that was in the index.php file.....nothing else...
Are the files all in the same folder? did you see the include code on the screen? also change it to be.
<? include ("logo.html"); ?>.
<? include ("nav.html"); ?>..
When I did the files that way, I just got the code for the index.php file up on the screen..
Getting slightly better, now got a space where the stuff should be at the top!.
Still not very close tho..
Looks to me like your webhost doesn't support PHP. Are you sure it does? What webhost are you using?.
Seeing the code on the screen means that the server hasn't parsed it. Scoutt's code uses simply.
, which probably is why that code isn't shown on the screen, but parsed as unknown code by the browser..
Or maybe you have the wrong extension. Are you sure the file had a .php extension?..
Erm....*quietly* tiscali */quietly*, so i'll take it from that that they don't support php?..
It could depend on the country (Tiscali works in many countries), but I use Tiscali Finland (formerly surfEU) and they don't support any server side languages, sorry...
Ach well, I dont think it ver likely that it'll support ssi then, it used to be lineone (that is still the address to reach it), but I now upload to tiscali uk..
Is there any sure way of finding out if they support it?..
Try to find a FAQ on their site, if you don't find any, contact their customer service and ask, at least that's a sure way..
Fair enough.....I'll go and do that, but you've now sowen that doubt in my mind so I'm fairly sure thats the problem....
Well, when I find out I'll post here, but in anticipation I'm sorry to have wasted your time..
Just because you can't use php or asp doesn't mean you can't use SSI. go back to Scoutt's 1st post..
If you're going to use Server Side Includes (SSI) files, not php or asp, the pages using them need the extension .shtml..
Then you put a line like scoutt showed you, only of course change the file name from file.html to whatever yours are, and put that line of code on the page where you want the menu, the footer, the header, etc., to end up..
Only the page using the includes needs that extension, the files you're including could be .html or .htm...