sulfericacid
Programmer
After installing the CGI tables I can't get my script to work. My debugger doesn't show any errors and fatalsToBrowser isn't showing anything other than the standard 500 error warning. My script doesn't load at all and I can't for the life of me figure out what's wrong.
Does anyone see anything which may be the problem?
#!/usr/bin/perl -w
use CGI::Carp 'fatalsToBrowser';
use strict;
use warnings;
my $adv = "Advertise your script here!";
my $adminmail = "sulfericacid\@qwest.net";
use CGI qw/:standard/;
print header,
start_html(),
print start_form(), table(
Tr(td( "Email Address: "
, td(textfield('usermail')) ),
Tr(td("Author: "
, td(textfield('author')) ),
Tr(td("Distributor: "
, td(textfield('distributor')) ),
Tr(td("Copyright: "
, td(textfield('copyright')) ),
Tr(td("Abstract: "
, td(textfield('abstract')) ),
Tr(td("Keywords: "
, td(textarea(-name=>'keywords',
-rows=>10,
-columns=>50)) ),
Tr(td("Description: "
, td(textarea(-name=>'description',
-rows=>10,
-columns=>50)) ),
Tr(td("Robots: "
, td(popup_menu(-name=>'robots',
-values=>['','index','noindex','follow','nofollow'])) ),
Tr(td("Distribution: "
, td(popup_menu(-name=>'distribution',
-values=>['','local','global'])) ),
Tr(td("Language: "
, td(popup_menu(-name=>'language',
-values=>['','EN','EN-GB','EN-US','ES','ES-ES','FR','IT','JA','KO','DE'])) ),
Tr(td("Rating: "
, td(popup_menu(-name=>'rating',
-values=>['','kids','general','mature','restricted'])) ),
Tr(td(), td(submit) ),
),
end_form(),
hr();
my $abstract = param('abstract');
my $usermail = param('usermail');
my $author = param('author');
my $distributor = param('distributor');
my $keywords = param('keywords');
my $description = param('description');
my $distribution = param('distribution');
my $robots = param('robots');
my $rating = param('rating');
my $language = param('language');
my $copyright = param('copyright');
my $tags ='';
if (param('abstract') ne ""
{
$tags .= qq(<meta name="abstract" content="$abstract"><br>);
}
if (param('author') ne ""
{
$tags .= qq(<meta name="author" content="$author"><br>);
}
if (param('distributor') ne ""
{
$tags .= qq(<meta name="distributor" content="$distributor"><br>);
}
if (param('copyright') ne ""
{
$tags .= qq(<meta name="copyright" content="$copyright"><br>);
}
if (param('keywords') ne ""
{
$tags .= qq(<meta name="keywords" content="$keywords"><br>);
}
if (param('description') ne ""
{
$tags .= qq(<meta name="description" content="$description"><br>);
}
$tags .= qq(<meta name="generator" content="$adv"><br>);
if (param('robots') ne ""
{
$tags .= qq(<meta name="robots" content="$robots"><br>);
}
if (param('language') ne ""
{
$tags .= qq(<meta name="language" content="$language"><br>);
}
if (param('distribution') ne ""
{
$tags .= qq(<meta name="distribution" content="$distribution"><br>);
}
if (param('rating') ne ""
{
$tags .= qq(<meta name="rating" content="$rating"><br>);
}
if (param()) {
print $tags;
print hr;
print end_html();
} "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
Does anyone see anything which may be the problem?
#!/usr/bin/perl -w
use CGI::Carp 'fatalsToBrowser';
use strict;
use warnings;
my $adv = "Advertise your script here!";
my $adminmail = "sulfericacid\@qwest.net";
use CGI qw/:standard/;
print header,
start_html(),
print start_form(), table(
Tr(td( "Email Address: "
Tr(td("Author: "
Tr(td("Distributor: "
Tr(td("Copyright: "
Tr(td("Abstract: "
Tr(td("Keywords: "
-rows=>10,
-columns=>50)) ),
Tr(td("Description: "
-rows=>10,
-columns=>50)) ),
Tr(td("Robots: "
-values=>['','index','noindex','follow','nofollow'])) ),
Tr(td("Distribution: "
-values=>['','local','global'])) ),
Tr(td("Language: "
-values=>['','EN','EN-GB','EN-US','ES','ES-ES','FR','IT','JA','KO','DE'])) ),
Tr(td("Rating: "
-values=>['','kids','general','mature','restricted'])) ),
Tr(td(), td(submit) ),
),
end_form(),
hr();
my $abstract = param('abstract');
my $usermail = param('usermail');
my $author = param('author');
my $distributor = param('distributor');
my $keywords = param('keywords');
my $description = param('description');
my $distribution = param('distribution');
my $robots = param('robots');
my $rating = param('rating');
my $language = param('language');
my $copyright = param('copyright');
my $tags ='';
if (param('abstract') ne ""
$tags .= qq(<meta name="abstract" content="$abstract"><br>);
}
if (param('author') ne ""
$tags .= qq(<meta name="author" content="$author"><br>);
}
if (param('distributor') ne ""
$tags .= qq(<meta name="distributor" content="$distributor"><br>);
}
if (param('copyright') ne ""
$tags .= qq(<meta name="copyright" content="$copyright"><br>);
}
if (param('keywords') ne ""
$tags .= qq(<meta name="keywords" content="$keywords"><br>);
}
if (param('description') ne ""
$tags .= qq(<meta name="description" content="$description"><br>);
}
$tags .= qq(<meta name="generator" content="$adv"><br>);
if (param('robots') ne ""
$tags .= qq(<meta name="robots" content="$robots"><br>);
}
if (param('language') ne ""
$tags .= qq(<meta name="language" content="$language"><br>);
}
if (param('distribution') ne ""
$tags .= qq(<meta name="distribution" content="$distribution"><br>);
}
if (param('rating') ne ""
$tags .= qq(<meta name="rating" content="$rating"><br>);
}
if (param()) {
print $tags;
print hr;
print end_html();
} "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid