in reply to Re^6: html checkbox and perl cgi
in thread html checkbox and perl cgi
This will give you the reasons for the errors and where they occurred rather than the dreaded "Internal Server Error" message.use CGI::Carp('fatalsToBrowser');
Just to get you past this, maybe it would be easier to just put the below lines before your whole script - click the 'download' link at the bottom and then copy and paste it right on the top line, forcing your original down. The '__END__' will exclude everything that comes after, as if you had commented it all out.
#!/usr/bin/perl -w use strict; use DBI; use CGI; use CGI::Carp('fatalsToBrowser'); my $query = new CGI; print $query->header(); if ($query->param('submit1')){ my $family = $query->param('family'); my $TB = $query->param('TB'); my $LM = $query->param('LM'); my $HS = $query->param('HS'); my $SC = $query->param('SC'); my $AT = $query->param('AT'); print "TB: $TB<br>"; print "LM: $LM<br>"; print "HS: $HS<br>"; print "SC: $SC<br>"; print "AT: $AT<br>"; } __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: html checkbox and perl cgi
by AdrianJ217 (Novice) on Jan 18, 2014 at 23:24 UTC | |
by tangent (Parson) on Jan 18, 2014 at 23:27 UTC | |
by AdrianJ217 (Novice) on Jan 18, 2014 at 23:45 UTC | |
by tangent (Parson) on Jan 19, 2014 at 00:01 UTC |