Solved

How Do I do This?

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

749 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