Solved

PWS and cgi

Posted on 1998-07-17
4
292 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
ID: 1830836
Edited text of question
0
 
LVL 1

Author Comment

by:marvinm
ID: 1830837
Adjusted points to 100
0
 

Accepted Solution

by:
rstabl earned 100 total points
ID: 1830838
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
ID: 1830839
Super. Silly on my part!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
API Soap Calls 4 116
issue with beginner powershell script. 5 61
Disk Ram Peak 1 41
What language/protocol is the Angular Chat? 2 77
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

777 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