Solved

Executive SQL command in CGI

Posted on 1999-01-27
5
225 Views
Last Modified: 2013-12-25
Dear Madam/Sir,

The attached file is my HTML file. In the "comment.exe", I run the SQL command to insert the data to a database. I could check the data had been put in the correspond variables in "comment.exe". Why dos it appear "File Download" windows when run the sub-procedure including the SQL commands?
My email address is csxhuang@yahoo.com

Thanks!

csxhuang

------------------------------------------------------

<html>

<head>
<title>Òâ¼ûÏä</title>
</head>

<body bgcolor="#FFFFFF">
<div align="center"><center>

<table width="612" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td></td>
    <td align="right" valign="top"><form action="/cgi-bin/comment.exe" method="POST">
      <table border="0" width="100%">
        <tr>
          <td valign="top" align="right"><font size="-1">µç×ÓÓʼþÐÅÏä </font></td>
          <td><input type="text" size="30" name="email" maxlength="50"><br>
<spacer type="vertical" size="15">          </td>
        </tr>
        <tr>
          <td valign="top" align="right"><font size="-1">ϵͳƽ̨</font> </td>
          <td><select name="SYSTEM" size="1">
            <option>ϵͳƽ̨ </option>
            <option>MS Windows 3.1 </option>
            <option>MS Windows 95 </option>
            <option>UNIX </option>
            <option>Other </option>
          </select><br>
<spacer type="vertical" size="15">          </td>
        </tr>
        <tr>
          <td valign="top" align="right"><font size="-1">Ö÷Ìâ</font></td>
          <td><input type="text" size="30" name="URL_Subject"><br>
<spacer type="vertical" size="15">          </td>
        </tr>
        <tr>
          <td valign="top" align="left" colspan="2"><font size="-1">½¨ÒéËù¶ÔÍøÒ³ </font></td>
        </tr>
        <tr>
          <td valign="top" align="right"><font face="arial, helvetica" size="-1">URL</font></td>
          <td><input type="text" size="30" name="URL" maxlength="50"><br>
<spacer type="vertical" size="15">          </td>
        </tr>
        <tr>
          <td valign="top" align="right"><font size="-1">½¨Òé</font></td>
          <td><textarea rows="6" cols="25" name="url_comment">
</textarea><br>
<spacer type="vertical" size="9">          </td>
        </tr>
        <tr>
          <td></td>
          <td><input type="submit" name="Submit" Comments" value=" Ìá½» "> <spacer type="vertical" size="12"></td>
        </tr>
      </table>
    </form>
    </td>
  </tr>
</table>
</center></div>
</body>
</html>
0
Comment
Question by:csxhuang
[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
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 100 total points
ID: 1832429
the directory where your CGI resides has to have execute rights in the file system as well as with the server software. Only then will the cgi be executed instead of downloaded. What server software do you use and what operating system do you run?
0
 

Author Comment

by:csxhuang
ID: 1832430
Dear Dr. MaDdUCK,

Sorry for forget to tell you details! The opearting system is Windows 98, and the Web server is Microsoft FrontPage 98. I put the HTML file in the root, and the "comment.exe" file in cgi-bin.
Could you give me the suggest as soon as possible?
Thanks!!!

csxhuang

0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1832431
Okay, there has to be something in Frontpgae to change the settings for the virtual directory cgi-bin. I don't have Frontpage myself so cannot say exactly, but I shall go and look aroung a little. If you can't get this to work I suggest that you deinstall the Frontpage webserver and user Windows 98's Peer Web Services (or Personal Web Server), whatever it is called. This program will have a nice utility where you can configure your cgi-bin correctly.
0
 

Author Comment

by:csxhuang
ID: 1832432
I think you are right. I will try it. I would trouble you again if it is out of order. Thanks a lot! csxhuang
0
 

Author Comment

by:csxhuang
ID: 1832433
Using WebSite 1.1, the problem is disappear. Thanks! csxhuang
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

630 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