Solved

PWS and cgi

Posted on 1998-07-17
4
288 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
This article will show, step by step, how to integrate R code into a R Sweave document
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

932 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

13 Experts available now in Live!

Get 1:1 Help Now