Creating the CGI Program
Now that the web form is created, you need a program to handle it. This section describes how to make a simple CGI program to read the form data.
When the user clicks on the Submit button, the browser encodes the data in the form and sends it to web server. The web server then runs the CGI program and sends the data to it.
A lot of details are involved in the encoding and decoding of form data. Fortunately, you don’t have to worry about them because there are Perl modules to do the work for you.
CGI Versus CGI::ThinMost books on CGI programming describe how to use the CGI module rather than of the CGI::Thin module. The CGI::Thin module is a short, simple module that does everything you want it to. The CGI module also ... |
Get Perl for C Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.