I'm trying to create a little form usign CGI.pm but I get this error from 
apache:
 malformed header from script. Bad header=<form method="post" action="/c: 
/usr/lib/cgi-bin/make_graph_CPU_form.pl.cgi

this is my perl code:

#!/usr/bin/perl
use CGI qw/:standard/;

sub print_form {
        print start_form,
        "Metriche:",
         checkbox(-name=>'usr',-checked=>1),
         checkbox(-name=>'sys',-checked=>0),
         checkbox(-name=>'wio',-checked=>0),
         checkbox(-name=>'idle',-checked=>0),
         reset(-name=>'Reset'),
         submit(-name=>'Go!'),
         end_form;
};

print header,
        start_html('RRDTool CPU Usage Monitor'),
        h1('RRDTool CPU Usage Monitor'),
        print_form(),
        "Nothing to it!\n",
        end_html;

I don't understand why apache tells:"action="/c: 
/usr/lib/cgi-bin/make_graph_CPU_form.pl.cgi" when the form prints out "<form 
method="post" action="/./make_graph_CPU_form.pl.cgi" 
enctype="application/x-www-form-urlencoded">"
Could you help me?

Thank You


Mauro

Reply via email to