> since I'm starting to set up my website with
> forms requiring cgi [which requires perl on UNIX/Linux platform],
No it doesn't.  A CGI program is anything that'll write HTTP stuff to
stdout:

#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("Content-Type: text/html\n\n");
    printf("<HTML><HEAD><TITLE>Sample CGI program in C</TITLE></HEAD>\n");
    printf("<BODY><H1>Sample CGI output</H1><P>This page was generated by");
    printf("a C program. &nbsp;Have a nice day!</P></BODY></HTML>");
    exit(0);
}

or:
#!/bin/sh

echo "Content-Type: text/html"
echo ""
echo "<HTML><HEAD><TITLE>Sample in shell script</TITLE></HEAD>"
echo "<BODY><P>Stuff.</P></BODY></HTML>"

Perl makes handling the environment variables or the URL tail easier,
although there are plenty of other ways to accomplish that.

Regards,
Ben A L Jemmett.
(http://web.ukonline.co.uk/ben.jemmett/, http://www.deltasoft.com/)

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html

Reply via email to