Confused with an Include

admin

Administrator
Staff member
My include isn't working.. can I only have one include per page? I've tried changing the file type from .inc, to .htm in a hope of maybe making it work. Is it the Table data tags that are breaking it?<br />
<br />
Here's my include:<br />
<td valign=top align=center><form name="nav"> <!-- #include file="dropdown.htm" --> </td><br />
<br />
And here's the text in it:<br />
dropdown.htm<br />
<font face=arial size=-1 color=black><B>Browse the Site:</B> <select name=choose onchange="navigate()"><br />
<option selected>Make Selection below..</option><br />
<option>History</option><br />
<option>Activities</option><br />
<option>Administration</option><br />
</select><br />
<br />
<br />
I view my source and it IS including the text.. but it just doesn't show up in the browser at all. I can't understand why it's not working.<br />
<br />
<br />
Now this include works (it shows up in the browser:<br />
<!-- #include file="footer.inc"--><br />
<br />
here's the text in the include:<br />
<br />
<p><table align=center border=0 width=95%><tr><td align=center><a href=http://www.htmlforums.com/archive/index.php/"../../"><img src="images/cclogo.gif" border=0 alt="homepage"><BR>Homepage</a></td><td align=center><a href="default.htm"><img src="images/img002.gif" border=0 alt="homepage"><br>Office Homepage</a></td></tr></table><br />
</td><!--content-->I don't see the closing </form> tag anywhere in your example code.<br />
<br />
Run the page through <!-- m --><a class="postlink" href="http://validator.w3.org/">http://validator.w3.org/</a><!-- m --> and it will tell you exactly what is missing, in the wrong order, incomplete, spelt wrong, etc.<!--content-->alright I turned it to a .asp and it worked.. can I still do this and keep the pages .htm?<!--content-->Alright I ran it through that and it found nothing wrong.<!--content-->what is the files name that is doing the includes?<!--content-->it's called dare.htm<!--content-->unless your server (and most don't do this) is set to parse all htm files as server side includes, you will not be able to see it. you have to rename the file to<br />
<br />
dare.shtml<!--content-->Well I have over 250 files that I'd have to rename, and over 80,000 pages I'd have to update.. so I guess I'm not going to be using any include files cause I don't wanna have to do THAT much work. Hehe.<!--content-->
 
Back
Top