Forum Moderators: open

Message Too Old, No Replies

Newbie Question - Include Files not working in personal webspace UK

         

mrhans

5:37 pm on Mar 14, 2005 (gmt 0)



Hello

newbie question here - I am trying to get my site up on my personal webspace - 30mb with blueyonder - free with broadband - it says that it supports asp

anway

I'm trying to experiment with include files - but nothing seems to be appearing in the relevant <td> tags where I am trying to include

am I being daft

help - much appreciated

code is below - down to the point where the first include file is

<%@ language=VBSCRIPT" %>
<% OPTION EXPLICIT %>
<HTML>
<HEAD>
<TITLE>Polaroid Home Page</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link href="polaroid.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY BGCOLOR=#000000>
<TABLE align=center WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=5>
<IMG SRC="images/deckfromabovepage_01.jpg" WIDTH=750 HEIGHT=98 ALT=""></TD>
<TD>
<IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=98 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="images/deckfromabovepage_02.jpg" WIDTH=563 HEIGHT=56 ALT=""></TD>
<TD ROWSPAN=2>
<!--#include file="include/menubar.htm"--> </TD>

Thanks very much in advance

Hans

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 7:37 pm (utc) on Mar. 14, 2005]

cmatcme

6:13 pm on Mar 14, 2005 (gmt 0)

10+ Year Member



Welcome to Webmasterworld

When you include files they must the inc extension.

Change the filename menubar.htm to menubar.inc and thus change the code to:

<!-- #include file="include/menubar.inc" -->

mattglet

6:43 pm on Mar 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Include files do not have to be .inc, they can be whatever you wish.

I just took a look at your site, and it seems as though it's not being processed as an ASP file. Check with your host to make sure you are set up correctly to use ASP with your account.

mrhans

6:54 pm on Mar 14, 2005 (gmt 0)



Hey Mattglet

Thanks - I've just checked with my host and asp is not supported unless I upgrade my account to £4 per month

at least I know

ta

Hans