Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
I need help



dovip
New User

Apr 16, 2014, 1:34 PM


Views: 18486
I need help

Hello, I wrote for CGI html from Perl. However, there is something wrong that not appear "Submit" button. How?

Thanks


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

print header;


my %html = (
"Linux.org" => "www.linux.org",
"Gamespot.com" => "www.gamespot.com",
);

print option_list(\%html);

sub option_list {
my $options = shift;
return
"<select>\n" .
(join '', map{ qq!<option value="$options->{$_}">$_</option>\n! }
keys %$options ) .
"</select>\n";
"<input type=\"submit\" vaule='Submit'>";
}



BillKSmith
Veteran

Apr 16, 2014, 3:22 PM


Views: 18481
Re: [dovip] I need help

The first step in debugging a CGI script is to run it from the command line. The html that it creates is displayed on the terminal. Try it. I am sure that you will see the problem. Ask again if you need help to fix it.
Good Luck,
Bill