DBIx::Frame::CGI contains tools for web-based use of DBIx::Frame databases.
SYNOPSIS
use DBIx::Frame::CGI;
DBIx::Frame->init('server', 'dbtype') || exit(0);
my $DB = DBIx::Frame->new('database', 'user', 'pass')
or die("Couldn't connect to database: ", DBIx->errstr);
my $CGI = new CGI || die "Couldn't open CGI";
my $params = {};
foreach ($cgi->param) { $$params{$_} = $cgi->param($_); }
my $action = $cgi->param('action') || "";
my $table = $cgi->param('table') || "";
print $cgi->header(), $cgi->start_html(-title => "YOUR TITLE");
print $DB->make_html( $action, $table, $params, {} )
or die "Couldn't run script";
print $cgi->end_html();
exit(0);
More functions, and detailed descriptions, are below.
DBIx::Frame::CGI is an extension of the DBIx::Frame module to allow for web use and administration of DBIx::Frame databases. It provides a common set of HTML functions for creating, modifying, viewing, and deleting entries in the database. These tools allow for simple administration scripts, as well as a decent API for creating more complex user scripts.
Product's homepage
Requirements:
· Perl