Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PWS and cgi

Posted on 1998-07-17
4
Medium Priority
?
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

636 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