cgi help

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

How do I display a .htnl doc when one of
3 buttons are clicked on with CGI?

Here's what I have.

#!/usr/bin/perl -w

$| = 1;                                   # unbuffer STDOUT

use CGI qw(:standard);   # include the module and import standard
use CGI::Carp qw(fatalsToBrowser);
new CGI;
open (STDERR, ">&STDOUT");

    print header;
    print start_html(-BGCOLOR=>'white'),
    h2('FYI LogViewer'),

    submit(-name=>'listfyis',        # View FYIs button
       -value=>'View FYIs'),

    print "<b>";
    print "<br>";
    if (param()) {
       $viewfyis = (param('listfyis'));
       if ($viewfyis eq "View FYIs") {
          print redirect(-uri=>' /');
    print end_html;

Site Timeline