15.3. Basic CGI applications with Perl

15.3.1. Collect and store data online

One of the practical applications of using server storage is to collect user information online such as comments and consumer opinions. These data may be used later for statistical analysis and form one of the basic tools of marketing research.

Our next example is a page to collect users’ opinions on their favorite browsers and operating systems. This page first displays an XHTML document ex15-09.htm for the user to fill. Once the form has been filled and the Send button pressed, the form will be submitted to the Perl script program ex15-09.pl for processing. After sending an acknowledgment back to the user, the Perl script opens a data file and appends the data to ...

Get Practical Web Technologies 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.