Solved

Problems Starting out

Posted on 1998-12-17
2
457 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 50 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

696 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