Solved

How Do I do This?

Posted on 1997-06-06
3
261 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
[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
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
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 count occurrences of each item in an array.

732 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