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

x
?
Solved

Problems Starting out

Posted on 1998-12-17
2
Medium Priority
?
459 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
[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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

618 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