Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show (not link to) 2nd page ON current page?

Status
Not open for further replies.

jrpatdlgs

Programmer
Mar 28, 2000
62
US
I've been told that there is a <simple> script or &quot;server side include&quot; that will allow a web page (#1) to display (not link to) the contents of another web page (#2) on the original page (#1). The code I was given to insert is:

<#include file=&quot;
Something is missing -- it doesn't work.

Can anyone help out? Your response will be greatly appreciated.

Thanks,
John
 
John,

There should be 3 thing to use SSI
1) server that supports SSI;
2) file extension that can support SSI;
3) correct code.

If you are using any sort of server-side scripting, such as ASP, JSP, PHP, ColdFusion, etc., your server and file extensions are OK for SSI.

If you are using simple HTML you should
1) save file with special extension .shtml or .shtm (there could be some others but these two are the most common);
2) check that your server supports SSI and .shtml or .shtm files either by testing it (uploading files to the server) or by askoing your ISP about it.

Any way you must use correct code for inserting SSI
<!--#include virtual=&quot;any_file.any&quot; -->
Good Luck! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top