How to build the text materials - with a program
If some part of a homepage needs to change
dynamically
or be interactive,
you will need a CGI program (see also
other names). Here we
will study the basic functions of a CGI program
using examples written in Perl.
|
Example 1 |
|
|
Example 2 |
|
|
Example 3 |
|
|
|
|
|
|
|
|
|
Print a homepage
|
|
|
Do some processing
|
|
|
Read user input
|
|
|
|
|
AND
|
|
|
AND
|
|
|
|
|
Print a homepage
|
|
|
Do some processing
|
|
|
|
|
|
|
|
AND
|
|
|
|
|
|
|
|
Print a homepage
|
(See Perl references for more information, tips.)