scoutt
04-04-2002, 08:54 AM
Q. How do I include a file using ServerSide Includes?
A. You need to have the main file index.shtml to have the shtml extension. then on the files you include you don't need the <html><body> tags. The Menu file can be any extension you want.
index.shtml
<html>
<head>
<title></title>
</head>
<body>
<table>
<!-- #include file="menu.txt" -->
<td></td>
<td></td>
</tr></table>
</body>
</html>
menu.txt
<tr>
<td>
<p><a href="link1.html>link 1 </a></p>
<p><a href="link2.html>link 2 </a></p>
<p><a href="link3.html>link 3 </a></p>
<p><a href="link4.html>link 4 </a></p></td>
A. You need to have the main file index.shtml to have the shtml extension. then on the files you include you don't need the <html><body> tags. The Menu file can be any extension you want.
index.shtml
<html>
<head>
<title></title>
</head>
<body>
<table>
<!-- #include file="menu.txt" -->
<td></td>
<td></td>
</tr></table>
</body>
</html>
menu.txt
<tr>
<td>
<p><a href="link1.html>link 1 </a></p>
<p><a href="link2.html>link 2 </a></p>
<p><a href="link3.html>link 3 </a></p>
<p><a href="link4.html>link 4 </a></p></td>