You should probably also read up on taint mode. In addition, Ovid has a very good introduction to CGI that covers all the basics (including taint mode). You should definitely give it a look.
----------
"Write a wise saying and your name will live forever." - Anonymous