User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 427,035 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,487 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1226 | Replies: 0
Reply
Join Date: Jul 2006
Posts: 8
Reputation: Silentiopk4 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Silentiopk4 Silentiopk4 is offline Offline
Newbie Poster

HTML and Server Side Includes

  #1  
Jul 26th, 2006
Hello,

I have a .shtml page that on it's own works with server side includes but when I call that page from a perl script which is called from a login .shtml page, they don't work.

I am using Microsoft IIS and I don't know if it's an IIS settings thing or if it's a problem with my code. I'll post the code here, and if anyone has any suggestions or can point me to a more appropriate forum, I would appreciate it.

Here's the file that works on it's own.
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/Active.css">
<title>Skill-Builder.org - Learning Opportunities</title>
</head>
<body>
<h1>You are here 0 db-top.shtml</h1>
<h2> dates:
<!--#config timefmt="%A, %B, %e, %Y"-->
<!--#echo var="DATE_LOCAL"--><br>
<!--#exec cgi="/Scripts/test.cgi"--><br>
<!--#exec cgi="/Scripts/test.pl"--><br>
<!--#exec cgi="/skill-builder/cgi-bin/test.cgi"--><br>
<!--#exec cgi="/skill-builder/cgi-bin/test.pl"--><br>
<!--#echo var="REMOTE_HOST"--><br>
Dates:
</h2>
</body>
</html>
[/html]

The .cgi and .pl just have print statements, that work. Whether I take them out or leave them in that snippet doens't matter. When I run the file through a browser, it works.

In this context it doesn't: I have index.shtml which is a frameset which calls login.shtml which displays a username and password screen. On submit, it calls login.pl which validates the username and password combo and then calls the above file, db-top.shtml.

I'm really, really lost on whether this is a problem with (1) the way I have things linked together, (2) my understanding of html and server-side includes, (3) an environment issue, or (4) something else entirely.

Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 3:02 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC