[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Problems Starting out

Posted on 1998-12-17
2
Medium Priority
?
464 Views
Last Modified: 2013-12-25
Having a small problem trying to get some CGI scription stuff started....

My understanding is that I can use a little c program and run that from the browser and by using the standard output can then receive stuff back from the program... however it doesn't seem to work at the moment very well.... here is a copy of the html and c source that I am using


<HTML>
<head>
<title>Blah Testy thing </title>
</head>
<body>
<hr>
<p>Hello let us try this then eh ?

<form action="///d|/testcgi.exe" method="post">
<input type="radio" name="a" checked> Blah<p>
<input type="radio" name="a"> Blah 2
<p><input type="submit" value="Go Away You Stupid Program">
</form>

</body>
</html>


and the c source

        #include <stdio.h>


       void main()
        {

              printf("Content-Type: text/html\n\n");
              printf("<html> <head>\n");
              printf("<title>CGI Environment</title>\n");
              printf("</head>\n");
              printf("<body>\n");
              printf("<h1>CGI Environment</h1>\n");

              printf("<p><p>Hello World.... yayayyayay\n");
              printf("</body> </html>\n");
        }

The c program I just took out of a primer book thingi on cgi scripting... anyway I have tried this using NEtscape Navigator 4.5 and IE 4.0 but don't seem to be having any luck... and help would be much appreciated

thanks

0
Comment
Question by:jaredc071598
2 Comments
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 200 total points
ID: 1830188
you are tyring to execute the CGI locally and thus the program will pop up. You need to access a CGI through a webserver, only then will it work. Otherwise your code seems fine. If you don't have a webserver, Microsoft Personal Web Server ships with Windows 95/98 and FrontPage 98, and Windows NT has IIS, so you need to install these locally for testing..
0
 

Author Comment

by:jaredc071598
ID: 1830189
Thank-you muchly, we wondered if this might be the problem, but thanks for confirming it
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses
Course of the Month19 days, 22 hours left to enroll

873 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