Solved

How Do I do This?

Posted on 1997-06-06
3
256 Views
Last Modified: 2013-12-25
I don't know CGI, but am familiar with Pascal, C, and HTML - I would like to write a program that is able to transfer information entered on a form, and write it to the page - similar to a guestbook.  I just need it to support two fields:  1.  Name  2.  Email Address   Any help would be much appreciated
0
Comment
Question by:baller20
3 Comments
 
LVL 1

Expert Comment

by:cgreenup
ID: 1828184
I assume you want to write it in C, since you're familiar with it, in which case, I can't be of much help, as I'm not familiar with C.  However, I have heard of something called 'cgi.c' which I assume contains all the code necessary to handle the cgi part of the program.  Maybe if you take a look at its source/docs that will tell you what you need.

-chrisg@gibson.gibson.com
0
 

Author Comment

by:baller20
ID: 1828185
I'm not sure what you mean.
0
 
LVL 5

Accepted Solution

by:
icd earned 100 total points
ID: 1828186
Here is a simple perl script that will take input from a form and output it to a html document.

---- cut here ----
#!/usr/local/bin/perl

require "cgi-bin.pl";

print &PrintHeader;
print <<__END_OF_HEADER__;
<HTML>
<HEAD>
</HEAD>
<BODY>

EMAIL: $in{'email'} NAME: $in{'name'}<br>

</BODY>
</HTML>
__END_OF_HEADER__
1;

---- cut here ----

You can of course adapt this to output more complex documents but you can see the basics here.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php survey script 4 64
Reading variable length EBCDIC in SAS 9 96
How can i reset all images size to default in a word file 6 58
Recursive folder search vbscript 7 40
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now