In the rest of this module, you will build the first of the two class projects, the
guestbook program.
Pay close attention to how the program flows between HTTP connections. This will give you a practical example of how to build other programs using these tools.
The full source code for the program, inlcuding the images and the associated
htmlp
files,
is available for download from the course Resources page. You may want to print a copy of the guestbook program to refer to during this lesson.
Overall structure: The overall structure of the program is very simple:
Now, let us examine the
nitty-gritty details of the guestbook CGI program.
In the next lesson, we will see how the state-machine model makes it easy to implement all these states.