Solved

PWS and cgi

Posted on 1998-07-17
4
281 Views
Last Modified: 2013-12-25
I am running microsoft PWS under Windows 95.
I have a simple cgi program linked with Thomas Boutell's cgic library. I get to my page by http://localhost/index.htm.
I have the followin form:
<form action="C:\WEBSHARE\wwwroot\cgi-bin\mycgi.exe"
method="POST">
    <input type="hidden" name="action" value="addlink"><p
    align="left"><input type="text" size="30" maxlength="30"
    name="name"></p>
    <p align="left"><!--webbot bot="Validation"
    b-value-required="TRUE" i-minimum-length="1"
    i-maximum-length="30" --><input type="text" size="30"
    maxlength="30" name="email"></p>
    <p align="left"><!--webbot bot="Validation"
    b-value-required="TRUE" i-minimum-length="1"
    i-maximum-length="30" --><input type="text" size="30"
    maxlength="30" name="title"></p>
    <p align="center"><input type="submit" name="test1"
    value="test1"> <input type="submit" name="test2"
    value="test2"> <input type="submit" name="blah" value="blah"></p>
</form>

When I click on any button, the file download dialog box comes up trying to download my cgi executable. What do I need to do to get the cgi program to run? my cgi directory has read/execute/script permissions.
Thank You, mm
0
Comment
Question by:marvinm
  • 3
4 Comments
 
LVL 1

Author Comment

by:marvinm
Comment Utility
Edited text of question
0
 
LVL 1

Author Comment

by:marvinm
Comment Utility
Adjusted points to 100
0
 

Accepted Solution

by:
rstabl earned 100 total points
Comment Utility
Change the line
<form action="C:\WEBSHARE\wwwroot\cgi-bin\mycgi.exe" method="POST">
to something like
<form action="http://localhost/scripts/mycgi.exe" method="POST">

The "scripts" may vary depending on the configuration of your PWS. Normally it is an alias for the cgi-bin directory in your wwwroot directory.

Regs,
 rbs.


0
 
LVL 1

Author Comment

by:marvinm
Comment Utility
Super. Silly on my part!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now