in reply to Design vs. Code vs. Maintenance
use CGI qw/:standard/; # for html shortcuts
use CGI::FastTemplate;
# code here
# creates an HTML string called $template, i.e.
my $template = table({-width => "641",
-border => "0",
-cellspacing => "10",
-cellpadding => "0",
-align => "center",
#-height => "734",
#border => 1
},
Tr(
td(
h1({-align => 'left'},
#img({ -src => "/anim_logo.gif",
#-width => "375", -height => "56"
# }),
br,
font({-color => "#3399CC"},
"There were errors in the form input:")
),
(map {h2("$_:"), h3(ul( map (li(i(mapfieldname($_))), @{$errors{$_}}) ))} keys %errors),
h3("Please click your ",
a({href => "javascript:history.go(-1);"}, 'BACK'),
" button and correct the pro- Comment on RE: Design vs. Code vs. Maintenance