Would you like to make this site your homepage? It's fast and easy...
Yes, Please make this my home page!
The Complete Perl Reference
Home >
Perl Reference
> Introduction
- Advanced Topics
- Forms
- Environment Variables
- Counters
- Animation
- User Authorization
- Imagemaps
The Common Gateway Interface, or CGI,
permits interactivity between a client and a host operating
system through the World Wide Web via the Hyper Text Transfer
Protocol (HTTP).
Basically, the Common Gateway Interface
allows someone visiting your Web site to run a little program on
your machine that performs a specified task. It doesn't matter
what language the program is written in, as long as you have the
resources to run it on your machine and the program is written
correctly.
Below is a recipe for using the
Common Gateway Interface. This example and the other examples in
this guide use the Perl language because of its portability and
relative ease of use. C examples are also included where
appropriate. Also Unix is the preferred operating system for this
guide.
Ingredients:
Instructions:
- Forms
- Okay, so we've seen how a CGI script can send information
back to a browser, but how do we send information to a
CGI script? This can be accomplished using what are
referred to as forms. Forms allow for user defined
information to be passed along from a Web browser to a
CGI program for processing.
- Environment Variables
- Unlike form variables, environment variables are not user
defined but are server defined. These variables are
passed along everytime a CGI script is invoked.
- Counters
- Page counters are used by Web site adminstrators who wish
to count the number of accesses to a particular page.
- Animation
- There are basically two types of animations. One is
reffered to as "server push" animations and the
other is "client pull" animations. Server push
animations are exactly that... a request for an image is
sent to the server and in response the server sends back
a sequence of images. With client pull animations, the
HTML document actually makes the request, thereby
"pulling" the sequence of images from the
server.
- User Authorization
- User Authorization allows a site admistrator to
"protect" or restrict access to certain areas
of a site by requiring the entry of a username and
password.
- Imagemaps
- Imagemaps allow users to click on a particular spot in an
image to retrieve another HTML document or to run a
specified script.
Maintained by Nick Grant < htmlstudio@talk21.com
>
Copyright © 2000 Nick Grant.
All Rights Reserved.