September 2002
Intermediate to advanced
544 pages
13h 6m
English
When many people begin writing CGI programs, they wind up writing lots of extra code. For example, they create an HTML page with a form on it, and then they write a CGI script to which the form will be submitted. If that script includes code to validate the user’s input, chances are they’ll also write code that redisplays the form with the values the user entered and messages to indicate where the user made errors.
This is a perfectly valid method for creating Web applications, but it’s probably not the most efficient method available. The main problem with this approach is that if the code to display the form already exists in the CGI script, there’s no reason to reproduce it in a separate ...
Read now
Unlock full access