jaredc071598
asked on
Problems Starting out
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
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"
<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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER