Message from discussion
Trying to run a simple CGI. Please help. Full source.
From: Michael Wines <u199...@purethought.com>
Subject: Re: Trying to run a simple CGI. Please help. Full source.
Date: 2000/06/08
Message-ID: <393F6CE1.6CC16969@purethought.com>#1/1
X-Deja-AN: 632536611
Approved: Self-Moderation <authoring-...@boutell.com>
References: <tgksjsk0c1hmsfm8mum96l2gcpcv9jr1aa@4ax.com> <393E5335.F6471110@attglobal.net> <hiiujs023qpfbf9fbbiqtm2j6e7ekd7qte@4ax.com>
X-Original-NNTP-Posting-Host: 204.157.220.254
X-Trace: 8 Jun 2000 02:53:14 -0600, 206.125.69.82
Organization: Pure Thought
Reply-To: Michael Wines <u199...@purethought.com>
Newsgroups: comp.infosystems.www.authoring.cgi
JKE wrote:
:
: Drew Simonis <care...@attglobal.net> wrote:
:
: :: #include <stdio.h>
: :: #include <stdlib.h>
: ::
: :: int main(void)
: :: {
: :: char *data;
: :: long m,n;
: :: printf("%s%c%c","<html>",13,10);
: :: printf("%s%c%c","<head>",13,10);
: :: printf("<title>Multiplication results</title>\n");
: :: printf("%s%c%c","<meta http-equiv=\"Content-Type\" content=\"text/html;
: :
: :
: :2 things I notice here. First, your header is AFTER the html
: :and head tags, should be before. Second is that it needs to be
: :followed by 2 newline charachters. (usually \n).
:
: I checked a few HTML pages and they all had a similar composition like mine.
:
: I'm just learning here and just want a "hello world" type of html page to
: display.
:
: I'll change the exe to write a htm page on the server and then make the browser
: jump there. What is the HMTL or CGI command that the exe should printf()?
Read this:
http://hoohoo.ncsa.uiuc.edu/cgi/primer.html
--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content. You can SELF-APPROVE your first posting
by writing the word 'passme' on a line by itself.