Here's a simple example that actually shows you where everything goes....this would be in asp but the format of the file is the same with the exception of the include statement....that would be based on the language you are using, asp, php, cfm, etc...
This is the code for the asp page
<html>
<head>
<title>Include Test</title>
</head>
<body>
<table>
<tr><td>
<!--#INCLUDE FILE="MyIncludeFile.scr"-->
</td></tr>
</table>
</body>
</html>
- <html>
- <head>
- <title>Include Test</title>
- </head>
- <body>
- <table>
- <tr><td>
- <!--#INCLUDE FILE="MyIncludeFile.scr"-->
- </td></tr>
- </table>
- </body>
- </html>
Then I create the .scr file in notepad or any other editor.
Begin contents of .scr file - can be html, asp script or plain text
Hello Ozzu Forum
End of contents
This example assumes that the .scr file is in the same directory as the asp file....if you want to store the .scr file in another folder just adjust the path to the file I.E. <!--#INCLUDE FILE="scripts/MyIncludeFile.scr"-->
Upload them to the server and it should work.
What kind of error message did you recieve. I also should have mentioned that your server not only needs to support the program language...in this case asp.....but also needs to support server side includes.
No...you can't have the page function the same as the frames....you would need to create a second page using the same format as the first page but you would change the contents of the .scr file to reflect the content of the new page.
Hope that explains it better...if not keep asking questions....don't give up hope....if you server supports it this is by far the best way to over come frames but still have the functionality of sharing one file across multiple pages.....just think of the each .scr file as an individual page in a frame set......good luck
