•
•
•
•
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
![]() |
•
•
Join Date: Jul 2006
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
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.
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ad advertising backup beta business centro code crash css daniweb database dell development div doubleclick dreamweaver enterprise firefox google google checkout google checkout vat html html api internet javascript linux longhorn mail microsoft mmorpg news novell open qmail red hat rhel server smtp software source suse symantec tables w3c web windows windows server wysiwyg xml
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- embedding a cgi script into a html document (HTML and CSS)
- Server side sends HTML over HTTP to browser (HTML and CSS)
- Import html docs from other server (ASP.NET)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- When a host says "included scripts" (Networking Hardware Configuration)
- Seeking DW MX 2004 Expert (Site Layout and Usability)
- footer and nav include (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: page size
- Next Thread: dropdown not working


Linear Mode