Solved

How Do I do This?

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

Containers and Docker for Everyone

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

688 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