Here are the scripts that go with HTML for the World Wide Web, Fifth Edition with XHTML and CSS: Visual QuickStart Guide. They are very simple scripts designed to let you see how forms work.
Parsing Forms and printing out results for visitor (not particularly useful in the real world, but great for testing)