This set of MacPerl CGI scripts creates a flat-file database for a simple contacts directory. Each record stores a unique Key (hidden from the user), Name, E-mail address, Phone number, and miscellaneous Notes field. With a little perserverance and copycat programming, you can modify the four CGI scripts and the database package Simple.pm to create your own custom database. The database.pl subroutines should work without modification.
The html files and cgi scripts are provided here as text files for you to download and try on your own server.
Add records. (The add.cgi script.)
Search the database. (The search.cgi script.)
Modify a record. (The modify.cgi script.)
Delete a record. (The delete.cgi script.)
(The database.pl subroutines.)
(The Simple.pm database.)This database example is based on the Simple Perl Database by Brent Michalski. Ported to MacPerl and the CGI.pm package by David Hart.