#!/usr/bin/perl
print "Content-type: text/html\n\n";
use CGI;
$query = new CGI;
# Retrieve web argument values.
$act = $query->param( 'act' );
if ( $act eq "Submit" ) {
$select = $query->param( 'select' );
if ( $select eq "clear" ) {
system( "rm books.txt; cat FPDemo.html" );
}
elsif ( $select eq "enter" ) {
system( "cat EnterBooks1.html" );
}
elsif ( $select eq "list" ) {
system( "cat ListBooks.html" );
}
else {
print( "No such option: $select" );
}
}
elsif ( $act eq "Help" ) {
system( "/bin/cat Help.html" );
}
else {
print( "No such option: $act" );
}
|